2014-11-25 22:54:26 +01:00
|
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts(1,10): error TS9001: 'generators' are not currently supported.
|
2014-11-25 07:53:55 +01:00
|
|
|
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts(3,11): error TS2304: Cannot find name 'yield'.
|
2014-11-25 07:45:33 +01:00
|
|
|
|
|
|
|
|
2014-11-25 21:16:31 +01:00
|
|
|
==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts (2 errors) ====
|
2014-11-25 07:45:33 +01:00
|
|
|
function * foo() {
|
2014-11-25 22:54:26 +01:00
|
|
|
~
|
2014-11-25 21:16:31 +01:00
|
|
|
!!! error TS9001: 'generators' are not currently supported.
|
2014-11-25 07:45:33 +01:00
|
|
|
// Legal to use 'yield' in a type context.
|
|
|
|
var v: yield;
|
|
|
|
~~~~~
|
|
|
|
!!! error TS2304: Cannot find name 'yield'.
|
|
|
|
}
|
|
|
|
|