Skip to content

Commit 3d0655d

Browse files
Updated baselines.
1 parent 8aeff70 commit 3d0655d

29 files changed

+123
-114
lines changed

tests/baselines/reference/decoratorOnClassMethod11.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// [decoratorOnClassMethod11.ts]
2-
module M {
3-
class C {
4-
decorator(target: Object, key: string): void { }
5-
6-
@this.decorator
7-
method() { }
8-
}
2+
module M {
3+
class C {
4+
decorator(target: Object, key: string): void { }
5+
6+
@this.decorator
7+
method() { }
8+
}
99
}
1010

1111
//// [decoratorOnClassMethod11.js]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//// [parserSymbolProperty4.ts]
22
declare class C {
3-
[Symbol.isRegExp]: string;
3+
[Symbol.toPrimitive]: string;
44
}
55

66
//// [parserSymbolProperty4.js]

tests/baselines/reference/parserSymbolProperty4.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
declare class C {
33
>C : C
44

5-
[Symbol.isRegExp]: string;
6-
>Symbol.isRegExp : symbol
5+
[Symbol.toPrimitive]: string;
6+
>Symbol.toPrimitive : symbol
77
>Symbol : SymbolConstructor
8-
>isRegExp : symbol
8+
>toPrimitive : symbol
99
}

tests/baselines/reference/parserSymbolProperty5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//// [parserSymbolProperty5.ts]
22
class C {
3-
[Symbol.isRegExp]: string;
3+
[Symbol.toPrimitive]: string;
44
}
55

66
//// [parserSymbolProperty5.js]

tests/baselines/reference/parserSymbolProperty5.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
class C {
33
>C : C
44

5-
[Symbol.isRegExp]: string;
6-
>Symbol.isRegExp : symbol
5+
[Symbol.toPrimitive]: string;
6+
>Symbol.toPrimitive : symbol
77
>Symbol : SymbolConstructor
8-
>isRegExp : symbol
8+
>toPrimitive : symbol
99
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//// [symbolDeclarationEmit1.ts]
22
class C {
3-
[Symbol.isRegExp]: number;
3+
[Symbol.toPrimitive]: number;
44
}
55

66
//// [symbolDeclarationEmit1.js]
@@ -10,5 +10,5 @@ class C {
1010

1111
//// [symbolDeclarationEmit1.d.ts]
1212
declare class C {
13-
[Symbol.isRegExp]: number;
13+
[Symbol.toPrimitive]: number;
1414
}

tests/baselines/reference/symbolDeclarationEmit1.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
class C {
33
>C : C
44

5-
[Symbol.isRegExp]: number;
6-
>Symbol.isRegExp : symbol
5+
[Symbol.toPrimitive]: number;
6+
>Symbol.toPrimitive : symbol
77
>Symbol : SymbolConstructor
8-
>isRegExp : symbol
8+
>toPrimitive : symbol
99
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
//// [symbolDeclarationEmit11.ts]
22
class C {
33
static [Symbol.iterator] = 0;
4-
static [Symbol.toPrimitive]() { }
5-
static get [Symbol.isRegExp]() { return ""; }
6-
static set [Symbol.isRegExp](x) { }
4+
static [Symbol.isConcatSpreadable]() { }
5+
static get [Symbol.toPrimitive]() { return ""; }
6+
static set [Symbol.toPrimitive](x) { }
77
}
88

99
//// [symbolDeclarationEmit11.js]
1010
class C {
11-
static [Symbol.toPrimitive]() { }
12-
static get [Symbol.isRegExp]() { return ""; }
13-
static set [Symbol.isRegExp](x) { }
11+
static [Symbol.isConcatSpreadable]() { }
12+
static get [Symbol.toPrimitive]() { return ""; }
13+
static set [Symbol.toPrimitive](x) { }
1414
}
1515
C[Symbol.iterator] = 0;
1616

1717

1818
//// [symbolDeclarationEmit11.d.ts]
1919
declare class C {
2020
static [Symbol.iterator]: number;
21-
static [Symbol.toPrimitive](): void;
22-
static [Symbol.isRegExp]: string;
21+
static [Symbol.isConcatSpreadable](): void;
22+
static [Symbol.toPrimitive]: string;
2323
}

tests/baselines/reference/symbolDeclarationEmit11.types

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ class C {
77
>Symbol : SymbolConstructor
88
>iterator : symbol
99

10-
static [Symbol.toPrimitive]() { }
11-
>Symbol.toPrimitive : symbol
10+
static [Symbol.isConcatSpreadable]() { }
11+
>Symbol.isConcatSpreadable : symbol
1212
>Symbol : SymbolConstructor
13-
>toPrimitive : symbol
13+
>isConcatSpreadable : symbol
1414

15-
static get [Symbol.isRegExp]() { return ""; }
16-
>Symbol.isRegExp : symbol
15+
static get [Symbol.toPrimitive]() { return ""; }
16+
>Symbol.toPrimitive : symbol
1717
>Symbol : SymbolConstructor
18-
>isRegExp : symbol
18+
>toPrimitive : symbol
1919

20-
static set [Symbol.isRegExp](x) { }
21-
>Symbol.isRegExp : symbol
20+
static set [Symbol.toPrimitive](x) { }
21+
>Symbol.toPrimitive : symbol
2222
>Symbol : SymbolConstructor
23-
>isRegExp : symbol
23+
>toPrimitive : symbol
2424
>x : string
2525
}
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(4,28): error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
2+
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,9): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
23
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,33): error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
34
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(6,40): error TS4055: Return type of public method from exported class has or is using private name 'I'.
4-
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,34): error TS4037: Parameter '[Symbol.isRegExp]' of public property setter from exported class has or is using private name 'I'.
5+
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(9,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
6+
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
7+
tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,37): error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'.
58

69

7-
==== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts (4 errors) ====
10+
==== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts (7 errors) ====
811
module M {
912
interface I { }
1013
export class C {
1114
[Symbol.iterator]: I;
1215
~
1316
!!! error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
1417
[Symbol.toPrimitive](x: I) { }
18+
~~~~~~~~~~~~~~~~~~~~
19+
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
1520
~
1621
!!! error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
1722
[Symbol.isConcatSpreadable](): I {
1823
~
1924
!!! error TS4055: Return type of public method from exported class has or is using private name 'I'.
2025
return undefined
2126
}
22-
get [Symbol.isRegExp]() { return undefined; }
23-
set [Symbol.isRegExp](x: I) { }
24-
~
25-
!!! error TS4037: Parameter '[Symbol.isRegExp]' of public property setter from exported class has or is using private name 'I'.
27+
get [Symbol.toPrimitive]() { return undefined; }
28+
~~~~~~~~~~~~~~~~~~~~
29+
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
30+
set [Symbol.toPrimitive](x: I) { }
31+
~~~~~~~~~~~~~~~~~~~~
32+
!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'.
33+
~
34+
!!! error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'.
2635
}
2736
}

0 commit comments

Comments
 (0)