Accepting new baselines
This commit is contained in:
parent
a2783edbeb
commit
f0ac90f6bd
|
@ -1,27 +1,18 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,5): error TS1129: Statement expected.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,16): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,6): error TS2346: Supplied parameters do not match any signature of call target.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(7,13): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,16): error TS2304: Cannot find name 'yield'.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(5,22): error TS1005: ',' expected.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts(9,1): error TS1128: Declaration or statement expected.
|
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts (5 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts (2 errors) ====
|
||||||
function decorator(x: any) {
|
function decorator(x: any) {
|
||||||
return y => { };
|
return y => { };
|
||||||
}
|
}
|
||||||
function* g() {
|
function* g() {
|
||||||
@decorator(yield 0)
|
@decorator(yield 0)
|
||||||
~
|
|
||||||
!!! error TS1129: Statement expected.
|
|
||||||
~~~~~~~~~~~~~~~~~~
|
|
||||||
!!! error TS2346: Supplied parameters do not match any signature of call target.
|
|
||||||
~~~~~
|
~~~~~
|
||||||
!!! error TS2304: Cannot find name 'yield'.
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
~
|
|
||||||
!!! error TS1005: ',' expected.
|
|
||||||
class C {
|
class C {
|
||||||
x = yield 0;
|
x = yield 0;
|
||||||
|
~~~~~
|
||||||
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~
|
|
||||||
!!! error TS1128: Declaration or statement expected.
|
|
|
@ -21,12 +21,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
||||||
function decorator(x) {
|
function decorator(x) {
|
||||||
return y => { };
|
return y => { };
|
||||||
}
|
}
|
||||||
function* g() { }
|
function* g() {
|
||||||
let C = class {
|
let C = class {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.x = yield 0;
|
this.x = yield 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
C = __decorate([
|
C = __decorate([
|
||||||
decorator(yield, 0)
|
decorator(yield 0)
|
||||||
], C);
|
], C);
|
||||||
|
}
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,11): error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,21): error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts(2,21): error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts (2 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck40.ts (1 errors) ====
|
||||||
function* g() {
|
function* g() {
|
||||||
class C extends (yield 0) { }
|
class C extends (yield 0) { }
|
||||||
~
|
|
||||||
!!! error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
!!! error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
!!! error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
||||||
}
|
}
|
|
@ -1,12 +1,9 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts(2,11): error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts(3,13): error TS1163: A 'yield' expression is only allowed in a generator body.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts(3,13): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts (2 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck57.ts (1 errors) ====
|
||||||
function* g() {
|
function* g() {
|
||||||
class C {
|
class C {
|
||||||
~
|
|
||||||
!!! error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
x = yield 0;
|
x = yield 0;
|
||||||
~~~~~
|
~~~~~
|
||||||
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts(2,11): error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts(3,20): error TS1163: A 'yield' expression is only allowed in a generator body.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts(3,20): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts (2 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck58.ts (1 errors) ====
|
||||||
function* g() {
|
function* g() {
|
||||||
class C {
|
class C {
|
||||||
~
|
|
||||||
!!! error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
static x = yield 0;
|
static x = yield 0;
|
||||||
~~~~~
|
~~~~~
|
||||||
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(2,11): error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(3,11): error TS1163: A 'yield' expression is only allowed in a generator body.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts(3,11): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts (2 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts (1 errors) ====
|
||||||
function* g() {
|
function* g() {
|
||||||
class C {
|
class C {
|
||||||
~
|
|
||||||
!!! error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
@(yield "")
|
@(yield "")
|
||||||
~~~~~
|
~~~~~
|
||||||
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,11): error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,21): error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts(2,21): error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts (2 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck60.ts (1 errors) ====
|
||||||
function* g() {
|
function* g() {
|
||||||
class C extends (yield) {};
|
class C extends (yield) {};
|
||||||
~
|
|
||||||
!!! error TS9004: 'class' declarations are only supported directly inside a module or as a top level declaration.
|
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
!!! error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
!!! error TS9002: Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clauses.
|
||||||
}
|
}
|
|
@ -1,22 +1,10 @@
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(2,5): error TS1129: Statement expected.
|
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(2,7): error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(2,12): error TS1146: Declaration expected.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(2,13): error TS1005: ')' expected.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(2,14): error TS1005: ';' expected.
|
|
||||||
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts(4,1): error TS1128: Declaration or statement expected.
|
|
||||||
|
|
||||||
|
|
||||||
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts (5 errors) ====
|
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts (1 errors) ====
|
||||||
function * g() {
|
function * g() {
|
||||||
@(yield 0)
|
@(yield 0)
|
||||||
~
|
~~~~~
|
||||||
!!! error TS1129: Statement expected.
|
!!! error TS1163: A 'yield' expression is only allowed in a generator body.
|
||||||
|
|
||||||
!!! error TS1146: Declaration expected.
|
|
||||||
~
|
|
||||||
!!! error TS1005: ')' expected.
|
|
||||||
~
|
|
||||||
!!! error TS1005: ';' expected.
|
|
||||||
class C {};
|
class C {};
|
||||||
}
|
}
|
||||||
~
|
|
||||||
!!! error TS1128: Declaration or statement expected.
|
|
|
@ -5,8 +5,19 @@ function * g() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//// [generatorTypeCheck61.js]
|
//// [generatorTypeCheck61.js]
|
||||||
function* g() { }
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||||
0;
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
|
||||||
class C {
|
switch (arguments.length) {
|
||||||
|
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
|
||||||
|
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
|
||||||
|
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function* g() {
|
||||||
|
let C = class {
|
||||||
|
};
|
||||||
|
C = __decorate([
|
||||||
|
(yield 0)
|
||||||
|
], C);
|
||||||
|
;
|
||||||
}
|
}
|
||||||
;
|
|
||||||
|
|
Loading…
Reference in a new issue