11 lines
396 B
Text
11 lines
396 B
Text
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13.ts(3,11): error TS2304: Cannot find name 'yield'.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13.ts (1 errors) ====
|
||
|
function * foo() {
|
||
|
// Legal to use 'yield' in a type context.
|
||
|
var v: yield;
|
||
|
~~~~~
|
||
|
!!! error TS2304: Cannot find name 'yield'.
|
||
|
}
|
||
|
|