mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
9 lines
173 B
TypeScript
9 lines
173 B
TypeScript
|
// @target: ES5
|
||
|
// @lib: es5,es2015.promise
|
||
|
// @noEmitHelpers: true
|
||
|
|
||
|
var foo = async (): Promise<void> => {
|
||
|
// Legal to use 'await' in a type context.
|
||
|
var v: await;
|
||
|
}
|