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

9 lines
436 B
Text
Raw Normal View History

2015-04-27 22:50:31 +02:00
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts(1,10): error TS1219: Generators are only available when targeting ECMAScript 6 or higher.
2014-11-25 07:45:33 +01:00
==== tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts (1 errors) ====
2014-11-25 07:45:33 +01:00
function * foo() {
2014-11-27 05:10:49 +01:00
~
2015-04-27 22:50:31 +02:00
!!! error TS1219: Generators are only available when targeting ECMAScript 6 or higher.
2014-11-25 07:45:33 +01:00
var v = { [yield]: foo }
2014-11-25 21:03:55 +01:00
}