TypeScript/tests/baselines/reference/asyncFunctionDeclaration12_es2017.errors.txt

7 lines
492 B
Plaintext

tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration12_es2017.ts(1,24): error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here.
==== tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration12_es2017.ts (1 errors) ====
var v = async function await(): Promise<void> { }
~~~~~
!!! error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here.