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

9 lines
436 B
Plaintext
Raw Normal View History

2015-06-02 02:40:35 +02:00
tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration9_es6.ts(1,10): error TS1220: 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-06-02 02:40:35 +02:00
!!! error TS1220: 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
}