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