Files

11 lines
496 B
Plaintext

FunctionDeclaration5_es6.ts(1,14): error TS1212: Identifier expected. 'yield' is a reserved word in strict mode.
FunctionDeclaration5_es6.ts(1,14): error TS7006: Parameter 'yield' implicitly has an 'any' type.
==== FunctionDeclaration5_es6.ts (2 errors) ====
function*foo(yield) {
~~~~~
!!! error TS1212: Identifier expected. 'yield' is a reserved word in strict mode.
~~~~~
!!! error TS7006: Parameter 'yield' implicitly has an 'any' type.
}