mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
525 B
Plaintext
14 lines
525 B
Plaintext
FunctionDeclaration13_es6.ts(3,11): error TS1212: Identifier expected. 'yield' is a reserved word in strict mode.
|
|
FunctionDeclaration13_es6.ts(3,11): error TS2304: Cannot find name 'yield'.
|
|
|
|
|
|
==== FunctionDeclaration13_es6.ts (2 errors) ====
|
|
function * foo() {
|
|
// Legal to use 'yield' in a type context.
|
|
var v: yield;
|
|
~~~~~
|
|
!!! error TS1212: Identifier expected. 'yield' is a reserved word in strict mode.
|
|
~~~~~
|
|
!!! error TS2304: Cannot find name 'yield'.
|
|
}
|
|
|