7 lines
146 B
TypeScript
7 lines
146 B
TypeScript
// @target: es2017
|
|
// @noEmitHelpers: true
|
|
async function foo(): Promise<void> {
|
|
// Legal to use 'await' in a type context.
|
|
var v: await;
|
|
}
|