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