mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 00:36:29 -05:00
Update baselines
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
constructor(public x: number) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.js]
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var A = (function () {
|
||||
function A() {
|
||||
this.blub = 6;
|
||||
}
|
||||
return A;
|
||||
}());
|
||||
var B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B(x) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
_super.call(this);
|
||||
this.x = x;
|
||||
}
|
||||
return B;
|
||||
}(A));
|
||||
@@ -0,0 +1,23 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : Symbol(x, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 6, 16))
|
||||
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : number
|
||||
|
||||
"use strict";
|
||||
>"use strict" : string
|
||||
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
constructor(public x: number) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.js]
|
||||
class A {
|
||||
constructor() {
|
||||
this.blub = 6;
|
||||
}
|
||||
}
|
||||
class B extends A {
|
||||
constructor(x) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super();
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : Symbol(x, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 6, 16))
|
||||
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : number
|
||||
|
||||
"use strict";
|
||||
>"use strict" : string
|
||||
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclaration1.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
|
||||
blub = 12;
|
||||
|
||||
constructor() {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclaration1.js]
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var A = (function () {
|
||||
function A() {
|
||||
this.blub = 6;
|
||||
}
|
||||
return A;
|
||||
}());
|
||||
var B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B() {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
_super.call(this);
|
||||
this.blub = 12;
|
||||
}
|
||||
return B;
|
||||
}(A));
|
||||
@@ -0,0 +1,23 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
blub = 12;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 5, 19))
|
||||
|
||||
constructor() {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
blub = 12;
|
||||
>blub : number
|
||||
>12 : number
|
||||
|
||||
constructor() {
|
||||
"use strict";
|
||||
>"use strict" : string
|
||||
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
|
||||
blub = 12;
|
||||
|
||||
constructor() {
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclaration1ES6.js]
|
||||
class A {
|
||||
constructor() {
|
||||
this.blub = 6;
|
||||
}
|
||||
}
|
||||
class B extends A {
|
||||
constructor() {
|
||||
'someStringForEgngInject';
|
||||
super();
|
||||
this.blub = 12;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
blub = 12;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 5, 19))
|
||||
|
||||
constructor() {
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
blub = 12;
|
||||
>blub : number
|
||||
>12 : number
|
||||
|
||||
constructor() {
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
blah = 2;
|
||||
constructor(public x: number) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js]
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var A = (function () {
|
||||
function A() {
|
||||
this.blub = 6;
|
||||
}
|
||||
return A;
|
||||
}());
|
||||
var B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B(x) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
_super.call(this);
|
||||
this.x = x;
|
||||
this.blah = 2;
|
||||
}
|
||||
return B;
|
||||
}(A));
|
||||
@@ -0,0 +1,25 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 0, 0))
|
||||
|
||||
blah = 2;
|
||||
>blah : Symbol(blah, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 5, 19))
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : Symbol(x, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 7, 16))
|
||||
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
blah = 2;
|
||||
>blah : number
|
||||
>2 : number
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : number
|
||||
|
||||
"use strict";
|
||||
>"use strict" : string
|
||||
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts]
|
||||
class A {
|
||||
blub = 6;
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
blah = 2;
|
||||
constructor(public x: number) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
}
|
||||
}
|
||||
|
||||
//// [emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.js]
|
||||
class A {
|
||||
constructor() {
|
||||
this.blub = 6;
|
||||
}
|
||||
}
|
||||
class B extends A {
|
||||
constructor(x) {
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super();
|
||||
this.x = x;
|
||||
this.blah = 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
blub = 6;
|
||||
>blub : Symbol(blub, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 0, 9))
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : Symbol(B, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 2, 1))
|
||||
>A : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
|
||||
blah = 2;
|
||||
>blah : Symbol(blah, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 5, 19))
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : Symbol(x, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 7, 16))
|
||||
|
||||
"use strict";
|
||||
'someStringForEgngInject';
|
||||
super()
|
||||
>super : Symbol(A, Decl(emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts, 0, 0))
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
=== tests/cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts ===
|
||||
class A {
|
||||
>A : A
|
||||
|
||||
blub = 6;
|
||||
>blub : number
|
||||
>6 : number
|
||||
}
|
||||
|
||||
|
||||
class B extends A {
|
||||
>B : B
|
||||
>A : A
|
||||
|
||||
blah = 2;
|
||||
>blah : number
|
||||
>2 : number
|
||||
|
||||
constructor(public x: number) {
|
||||
>x : number
|
||||
|
||||
"use strict";
|
||||
>"use strict" : string
|
||||
|
||||
'someStringForEgngInject';
|
||||
>'someStringForEgngInject' : string
|
||||
|
||||
super()
|
||||
>super() : void
|
||||
>super : typeof A
|
||||
}
|
||||
}
|
||||
@@ -75,8 +75,8 @@ var B = (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B() {
|
||||
"use strict"; // No error
|
||||
this.s = 9;
|
||||
_super.call(this);
|
||||
this.s = 9;
|
||||
}
|
||||
return B;
|
||||
}(A));
|
||||
|
||||
Reference in New Issue
Block a user