Skip to content

Commit f77cd8e

Browse files
committed
Accept new baselines
1 parent 25738a8 commit f77cd8e

37 files changed

+346
-226
lines changed

tests/baselines/reference/castTest.symbols

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,7 @@ var p_cast = <Point> ({
7171

7272
return new Point(this.x + dx, this.y + dy);
7373
>Point : Symbol(Point, Decl(castTest.ts, 11, 37))
74-
>this.x : Symbol(Point.x, Decl(castTest.ts, 14, 1))
75-
>this : Symbol(Point, Decl(castTest.ts, 11, 37))
76-
>x : Symbol(Point.x, Decl(castTest.ts, 14, 1))
7774
>dx : Symbol(dx, Decl(castTest.ts, 25, 18))
78-
>this.y : Symbol(Point.y, Decl(castTest.ts, 15, 14))
79-
>this : Symbol(Point, Decl(castTest.ts, 11, 37))
80-
>y : Symbol(Point.y, Decl(castTest.ts, 15, 14))
8175
>dy : Symbol(dy, Decl(castTest.ts, 25, 21))
8276

8377
},

tests/baselines/reference/castTest.types

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ var p_cast = <Point> ({
9191
return new Point(this.x + dx, this.y + dy);
9292
>new Point(this.x + dx, this.y + dy) : Point
9393
>Point : typeof Point
94-
>this.x + dx : number
95-
>this.x : number
96-
>this : Point
97-
>x : number
94+
>this.x + dx : any
95+
>this.x : any
96+
>this : any
97+
>x : any
9898
>dx : number
99-
>this.y + dy : number
100-
>this.y : number
101-
>this : Point
102-
>y : number
99+
>this.y + dy : any
100+
>this.y : any
101+
>this : any
102+
>y : any
103103
>dy : number
104104

105105
},

tests/baselines/reference/commentsOnObjectLiteral3.symbols

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,13 @@ var v = {
2121
>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 8, 13), Decl(commentsOnObjectLiteral3.ts, 12, 18))
2222

2323
return this.prop;
24-
>this.prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 1, 9))
25-
>this : Symbol(v, Decl(commentsOnObjectLiteral3.ts, 1, 7))
26-
>prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 1, 9))
27-
2824
} /*trailing 1*/,
2925
//setter
3026
set a(value) {
3127
>a : Symbol(a, Decl(commentsOnObjectLiteral3.ts, 8, 13), Decl(commentsOnObjectLiteral3.ts, 12, 18))
3228
>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 14, 7))
3329

3430
this.prop = value;
35-
>this.prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 1, 9))
36-
>this : Symbol(v, Decl(commentsOnObjectLiteral3.ts, 1, 7))
37-
>prop : Symbol(prop, Decl(commentsOnObjectLiteral3.ts, 1, 9))
3831
>value : Symbol(value, Decl(commentsOnObjectLiteral3.ts, 14, 7))
3932

4033
} // trailing 2

tests/baselines/reference/commentsOnObjectLiteral3.types

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
=== tests/cases/compiler/commentsOnObjectLiteral3.ts ===
22

33
var v = {
4-
>v : { prop: number; func: () => void; func1(): void; a: number; }
5-
>{ //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, //property func: function () { }, //PropertyName + CallSignature func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this.prop = value; } // trailing 2} : { prop: number; func: () => void; func1(): void; a: number; }
4+
>v : { prop: number; func: () => void; func1(): void; a: any; }
5+
>{ //property prop: 1 /* multiple trailing comments */ /*trailing comments*/, //property func: function () { }, //PropertyName + CallSignature func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this.prop = value; } // trailing 2} : { prop: number; func: () => void; func1(): void; a: any; }
66

77
//property
88
prop: 1 /* multiple trailing comments */ /*trailing comments*/,
@@ -21,25 +21,25 @@ var v = {
2121

2222
//getter
2323
get a() {
24-
>a : number
24+
>a : any
2525

2626
return this.prop;
27-
>this.prop : number
28-
>this : { prop: number; func: () => void; func1(): void; a: number; }
29-
>prop : number
27+
>this.prop : any
28+
>this : any
29+
>prop : any
3030

3131
} /*trailing 1*/,
3232
//setter
3333
set a(value) {
34-
>a : number
35-
>value : number
34+
>a : any
35+
>value : any
3636

3737
this.prop = value;
38-
>this.prop = value : number
39-
>this.prop : number
40-
>this : { prop: number; func: () => void; func1(): void; a: number; }
41-
>prop : number
42-
>value : number
38+
>this.prop = value : any
39+
>this.prop : any
40+
>this : any
41+
>prop : any
42+
>value : any
4343

4444
} // trailing 2
4545
};

tests/baselines/reference/declFileObjectLiteralWithAccessors.symbols

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ function /*1*/makePoint(x: number) {
1515
set x(a: number) { this.b = a; }
1616
>x : Symbol(x, Decl(declFileObjectLiteralWithAccessors.ts, 3, 14), Decl(declFileObjectLiteralWithAccessors.ts, 4, 30))
1717
>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 5, 14))
18-
>this.b : Symbol(b, Decl(declFileObjectLiteralWithAccessors.ts, 2, 12))
19-
>this : Symbol(__object, Decl(declFileObjectLiteralWithAccessors.ts, 2, 10))
20-
>b : Symbol(b, Decl(declFileObjectLiteralWithAccessors.ts, 2, 12))
2118
>a : Symbol(a, Decl(declFileObjectLiteralWithAccessors.ts, 5, 14))
2219

2320
};

tests/baselines/reference/declFileObjectLiteralWithAccessors.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function /*1*/makePoint(x: number) {
1919
>x : number
2020
>a : number
2121
>this.b = a : number
22-
>this.b : number
23-
>this : { b: number; x: number; }
24-
>b : number
22+
>this.b : any
23+
>this : any
24+
>b : any
2525
>a : number
2626

2727
};

tests/baselines/reference/declFileObjectLiteralWithOnlySetter.symbols

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ function /*1*/makePoint(x: number) {
1111
set x(a: number) { this.b = a; }
1212
>x : Symbol(x, Decl(declFileObjectLiteralWithOnlySetter.ts, 3, 14))
1313
>a : Symbol(a, Decl(declFileObjectLiteralWithOnlySetter.ts, 4, 14))
14-
>this.b : Symbol(b, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 12))
15-
>this : Symbol(__object, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 10))
16-
>b : Symbol(b, Decl(declFileObjectLiteralWithOnlySetter.ts, 2, 12))
1714
>a : Symbol(a, Decl(declFileObjectLiteralWithOnlySetter.ts, 4, 14))
1815

1916
};

tests/baselines/reference/declFileObjectLiteralWithOnlySetter.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function /*1*/makePoint(x: number) {
1515
>x : number
1616
>a : number
1717
>this.b = a : number
18-
>this.b : number
19-
>this : { b: number; x: number; }
20-
>b : number
18+
>this.b : any
19+
>this : any
20+
>b : any
2121
>a : number
2222

2323
};

tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.symbols

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,11 @@ var object = {
88

99
get 0() {
1010
return this._0;
11-
>this._0 : Symbol(_0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 14))
12-
>this : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 12))
13-
>_0 : Symbol(_0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 14))
14-
1511
},
1612
set 0(x: number) {
1713
>x : Symbol(x, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 6, 10))
1814

1915
this._0 = x;
20-
>this._0 : Symbol(_0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 14))
21-
>this : Symbol(object, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 12))
22-
>_0 : Symbol(_0, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 1, 14))
2316
>x : Symbol(x, Decl(emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts, 6, 10))
2417

2518
},

tests/baselines/reference/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ var object = {
1010

1111
get 0() {
1212
return this._0;
13-
>this._0 : number
14-
>this : { _0: number; 0: number; }
15-
>_0 : number
13+
>this._0 : any
14+
>this : any
15+
>_0 : any
1616

1717
},
1818
set 0(x: number) {
1919
>x : number
2020

2121
this._0 = x;
2222
>this._0 = x : number
23-
>this._0 : number
24-
>this : { _0: number; 0: number; }
25-
>_0 : number
23+
>this._0 : any
24+
>this : any
25+
>_0 : any
2626
>x : number
2727

2828
},

tests/baselines/reference/fatarrowfunctions.symbols

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ var messenger = {
163163

164164
setTimeout(() => { this.message.toString(); }, 3000);
165165
>setTimeout : Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1))
166-
>this.message.toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
167-
>this.message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17))
168-
>this : Symbol(messenger, Decl(fatarrowfunctions.ts, 38, 15))
169-
>message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17))
170-
>toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
171166
}
172167
};
173168

tests/baselines/reference/fatarrowfunctions.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ var messenger = {
234234
>setTimeout(() => { this.message.toString(); }, 3000) : number
235235
>setTimeout : (expression: any, msec?: number, language?: any) => number
236236
>() => { this.message.toString(); } : () => void
237-
>this.message.toString() : string
238-
>this.message.toString : () => string
239-
>this.message : string
240-
>this : { message: string; start: () => void; }
241-
>message : string
242-
>toString : () => string
237+
>this.message.toString() : any
238+
>this.message.toString : any
239+
>this.message : any
240+
>this : any
241+
>message : any
242+
>toString : any
243243
>3000 : 3000
244244
}
245245
};

tests/baselines/reference/fatarrowfunctionsInFunctions.symbols

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@ var messenger = {
1616

1717
var _self = this;
1818
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
19-
>this : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 15))
2019

2120
setTimeout(function() {
2221
>setTimeout : Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
2322

2423
_self.message.toString();
25-
>_self.message.toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
26-
>_self.message : Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17))
2724
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
28-
>message : Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17))
29-
>toString : Symbol(String.toString, Decl(lib.d.ts, --, --))
3025

3126
}, 3000);
3227
}

tests/baselines/reference/fatarrowfunctionsInFunctions.types

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ var messenger = {
1818
>function() { var _self = this; setTimeout(function() { _self.message.toString(); }, 3000); } : () => void
1919

2020
var _self = this;
21-
>_self : { message: string; start: () => void; }
22-
>this : { message: string; start: () => void; }
21+
>_self : any
22+
>this : any
2323

2424
setTimeout(function() {
2525
>setTimeout(function() { _self.message.toString(); }, 3000) : number
2626
>setTimeout : (expression: any, msec?: number, language?: any) => number
2727
>function() { _self.message.toString(); } : () => void
2828

2929
_self.message.toString();
30-
>_self.message.toString() : string
31-
>_self.message.toString : () => string
32-
>_self.message : string
33-
>_self : { message: string; start: () => void; }
34-
>message : string
35-
>toString : () => string
30+
>_self.message.toString() : any
31+
>_self.message.toString : any
32+
>_self.message : any
33+
>_self : any
34+
>message : any
35+
>toString : any
3636

3737
}, 3000);
3838
>3000 : 3000

tests/baselines/reference/looseThisTypeInFunctions.errors.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(21,1): error TS2322: Type '(this: C, m: number) => number' is not assignable to type '(this: void, m: number) => number'.
1+
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(22,1): error TS2322: Type '(this: C, m: number) => number' is not assignable to type '(this: void, m: number) => number'.
22
The 'this' types of each signature are incompatible.
33
Type 'void' is not assignable to type 'C'.
4-
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(25,27): error TS2339: Property 'length' does not exist on type 'number'.
5-
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(33,28): error TS2339: Property 'length' does not exist on type 'number'.
6-
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(37,9): error TS2684: The 'this' context of type 'void' is not assignable to method's 'this' of type 'I'.
7-
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(46,20): error TS2339: Property 'length' does not exist on type 'number'.
4+
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(26,27): error TS2339: Property 'length' does not exist on type 'number'.
5+
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(34,28): error TS2339: Property 'length' does not exist on type 'number'.
6+
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(38,9): error TS2684: The 'this' context of type 'void' is not assignable to method's 'this' of type 'I'.
7+
tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts(47,20): error TS2339: Property 'length' does not exist on type 'number'.
88

99

1010
==== tests/cases/conformance/types/thisType/looseThisTypeInFunctions.ts (5 errors) ====
11+
1112
interface I {
1213
n: number;
1314
explicitThis(this: this, m: number): number;

tests/baselines/reference/looseThisTypeInFunctions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//// [looseThisTypeInFunctions.ts]
2+
23
interface I {
34
n: number;
45
explicitThis(this: this, m: number): number;

tests/baselines/reference/objectSpread.symbols

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } }
200200
>plus : Symbol(plus, Decl(objectSpread.ts, 49, 23))
201201
>c : Symbol(c, Decl(objectSpread.ts, 45, 3))
202202
>plus : Symbol(plus, Decl(objectSpread.ts, 49, 48))
203-
>this.p : Symbol(p, Decl(objectSpread.ts, 49, 12))
204-
>this : Symbol(cplus, Decl(objectSpread.ts, 49, 10))
205-
>p : Symbol(p, Decl(objectSpread.ts, 49, 12))
206203

207204
cplus.plus();
208205
>cplus.plus : Symbol(plus, Decl(objectSpread.ts, 49, 23))

tests/baselines/reference/objectSpread.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } }
263263
>cplus : { p: number; plus(): void; }
264264
>p : number
265265
>plus : () => void
266-
>{ ...c, plus() { return this.p + 1; } } : { plus(): number; p: number; }
266+
>{ ...c, plus() { return this.p + 1; } } : { plus(): any; p: number; }
267267
>c : C
268-
>plus : () => number
269-
>this.p + 1 : number
270-
>this.p : number
271-
>this : { p: number; plus(): void; }
272-
>p : number
268+
>plus : () => any
269+
>this.p + 1 : any
270+
>this.p : any
271+
>this : any
272+
>p : any
273273
>1 : 1
274274

275275
cplus.plus();

tests/baselines/reference/selfInLambdas.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//// [selfInLambdas.ts]
2+
23
interface MouseEvent {
34
x: number;
45
y: number;

0 commit comments

Comments
 (0)