TypeScript/tests/baselines/reference/asyncArrowFunction10_es6.js

14 lines
280 B
TypeScript
Raw Normal View History

2015-05-07 02:33:58 +02:00
//// [asyncArrowFunction10_es6.ts]
var foo = async foo(): Promise<void> => {
// Legal to use 'await' in a type context.
var v: await;
}
//// [asyncArrowFunction10_es6.js]
var foo = async, foo = () => {
// Legal to use 'await' in a type context.
var v;
};