mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
//// [tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction10_es2017.ts] ////
|
|
|
|
//// [asyncArrowFunction10_es2017.ts]
|
|
var foo = async (): Promise<void> => {
|
|
// Legal to use 'await' in a type context.
|
|
var v: await;
|
|
}
|
|
|
|
|
|
//// [asyncArrowFunction10_es2017.js]
|
|
"use strict";
|
|
var foo = async () => {
|
|
// Legal to use 'await' in a type context.
|
|
var v;
|
|
};
|