Skip to content

Commit 8b8d33d

Browse files
committed
Fix comments
1 parent 35a303a commit 8b8d33d

23 files changed

+66
-66
lines changed

tests/baselines/reference/augmentedTypesClass2.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ tests/cases/compiler/augmentedTypesClass2.ts(21,6): error TS2300: Duplicate iden
66
// Checking class with other things in type space not value space
77

88
// class then interface
9-
class c11 { // error
9+
class c11 {
1010
foo() {
1111
return 1;
1212
}
1313
}
1414

15-
interface c11 { // error
15+
interface c11 {
1616
bar(): void;
1717
}
1818

tests/baselines/reference/augmentedTypesClass2.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// Checking class with other things in type space not value space
33

44
// class then interface
5-
class c11 { // error
5+
class c11 {
66
foo() {
77
return 1;
88
}
99
}
1010

11-
interface c11 { // error
11+
interface c11 {
1212
bar(): void;
1313
}
1414

tests/baselines/reference/augmentedTypesInterface.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ tests/cases/compiler/augmentedTypesInterface.ts(26,6): error TS2300: Duplicate i
1414
}
1515

1616
// interface then class
17-
interface i2 { // error
17+
interface i2 {
1818
foo(): void;
1919
}
2020

21-
class i2 { // error
21+
class i2 {
2222
bar() {
2323
return 1;
2424
}

tests/baselines/reference/augmentedTypesInterface.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ interface i {
1010
}
1111

1212
// interface then class
13-
interface i2 { // error
13+
interface i2 {
1414
foo(): void;
1515
}
1616

17-
class i2 { // error
17+
class i2 {
1818
bar() {
1919
return 1;
2020
}

tests/baselines/reference/classAndInterfaceWithSameName.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.
88
class C { foo: string; }
99
~~~
1010
!!! error TS2300: Duplicate identifier 'foo'.
11-
interface C { foo: string; } // error
11+
interface C { foo: string; }
1212
~~~
1313
!!! error TS2300: Duplicate identifier 'foo'.
1414

@@ -19,7 +19,7 @@ tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.
1919
!!! error TS2300: Duplicate identifier 'bar'.
2020
}
2121

22-
interface D { // error
22+
interface D {
2323
bar: string;
2424
~~~
2525
!!! error TS2300: Duplicate identifier 'bar'.

tests/baselines/reference/classAndInterfaceWithSameName.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//// [classAndInterfaceWithSameName.ts]
22
class C { foo: string; }
3-
interface C { foo: string; } // error
3+
interface C { foo: string; }
44

55
module M {
66
class D {
77
bar: string;
88
}
99

10-
interface D { // error
10+
interface D {
1111
bar: string;
1212
}
1313
}

tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.errors.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts(41,16): er
99
export interface I { }
1010
}
1111
module M {
12-
export class I { } // error
12+
export class I { }
1313
}
1414

1515
module M {

tests/baselines/reference/duplicateIdentifiersAcrossContainerBoundaries.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module M {
33
export interface I { }
44
}
55
module M {
6-
export class I { } // error
6+
export class I { }
77
}
88

99
module M {
@@ -60,7 +60,7 @@ var M;
6060
}
6161
return I;
6262
})();
63-
M.I = I; // error
63+
M.I = I;
6464
})(M || (M = {}));
6565
var M;
6666
(function (M) {

tests/baselines/reference/interfaceClassMerging2.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Bar extends Foo {
2828

2929

3030
var bar = new Bar();
31-
bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod();
31+
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
3232

3333

3434
var foo = new Foo();
@@ -61,6 +61,6 @@ var Bar = (function (_super) {
6161
return Bar;
6262
})(Foo);
6363
var bar = new Bar();
64-
bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod();
64+
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
6565
var foo = new Foo();
6666
foo = bar;

tests/baselines/reference/interfaceClassMerging2.symbols

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ var bar = new Bar();
5454
>bar : Symbol(bar, Decl(interfaceClassMerging2.ts, 28, 3))
5555
>Bar : Symbol(Bar, Decl(interfaceClassMerging2.ts, 11, 1), Decl(interfaceClassMerging2.ts, 17, 1))
5656

57-
bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod();
58-
>bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod : Symbol(Foo.classFooMethod, Decl(interfaceClassMerging2.ts, 6, 27))
59-
>bar.classFooMethod().interfaceFooMethod().classBarMethod : Symbol(Bar.classBarMethod, Decl(interfaceClassMerging2.ts, 20, 27))
60-
>bar.classFooMethod().interfaceFooMethod : Symbol(Foo.interfaceFooMethod, Decl(interfaceClassMerging2.ts, 0, 15))
61-
>bar.classFooMethod : Symbol(Foo.classFooMethod, Decl(interfaceClassMerging2.ts, 6, 27))
57+
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
58+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod : Symbol(Foo.classFooMethod, Decl(interfaceClassMerging2.ts, 6, 27))
59+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod : Symbol(Bar.classBarMethod, Decl(interfaceClassMerging2.ts, 20, 27))
60+
>bar.interfaceBarMethod().interfaceFooMethod : Symbol(Foo.interfaceFooMethod, Decl(interfaceClassMerging2.ts, 0, 15))
61+
>bar.interfaceBarMethod : Symbol(Bar.interfaceBarMethod, Decl(interfaceClassMerging2.ts, 14, 15))
6262
>bar : Symbol(bar, Decl(interfaceClassMerging2.ts, 28, 3))
63-
>classFooMethod : Symbol(Foo.classFooMethod, Decl(interfaceClassMerging2.ts, 6, 27))
63+
>interfaceBarMethod : Symbol(Bar.interfaceBarMethod, Decl(interfaceClassMerging2.ts, 14, 15))
6464
>interfaceFooMethod : Symbol(Foo.interfaceFooMethod, Decl(interfaceClassMerging2.ts, 0, 15))
6565
>classBarMethod : Symbol(Bar.classBarMethod, Decl(interfaceClassMerging2.ts, 20, 27))
6666
>classFooMethod : Symbol(Foo.classFooMethod, Decl(interfaceClassMerging2.ts, 6, 27))

tests/baselines/reference/interfaceClassMerging2.types

+10-10
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ var bar = new Bar();
5555
>new Bar() : Bar
5656
>Bar : typeof Bar
5757

58-
bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod();
59-
>bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod() : Bar
60-
>bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod : () => Bar
61-
>bar.classFooMethod().interfaceFooMethod().classBarMethod() : Bar
62-
>bar.classFooMethod().interfaceFooMethod().classBarMethod : () => Bar
63-
>bar.classFooMethod().interfaceFooMethod() : Bar
64-
>bar.classFooMethod().interfaceFooMethod : () => Bar
65-
>bar.classFooMethod() : Bar
66-
>bar.classFooMethod : () => Bar
58+
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
59+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod() : Bar
60+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod : () => Bar
61+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod() : Bar
62+
>bar.interfaceBarMethod().interfaceFooMethod().classBarMethod : () => Bar
63+
>bar.interfaceBarMethod().interfaceFooMethod() : Bar
64+
>bar.interfaceBarMethod().interfaceFooMethod : () => Bar
65+
>bar.interfaceBarMethod() : Bar
66+
>bar.interfaceBarMethod : () => Bar
6767
>bar : Bar
68-
>classFooMethod : () => Bar
68+
>interfaceBarMethod : () => Bar
6969
>interfaceFooMethod : () => Bar
7070
>classBarMethod : () => Bar
7171
>classFooMethod : () => Bar

tests/baselines/reference/mergedClassInterface.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ interface C2 { }
1111

1212
declare class C2 { }
1313

14-
class C3 { } // error -- cannot merge non-ambient class and interface
14+
class C3 { }
1515

16-
interface C3 { } // error -- cannot merge non-ambient class and interface
16+
interface C3 { }
1717

18-
interface C4 { } // error -- cannot merge non-ambient class and interface
18+
interface C4 { }
1919

20-
class C4 { } // error -- cannot merge non-ambient class and interface
20+
class C4 { }
2121

2222
interface C5 {
2323
x1: number;
@@ -59,12 +59,12 @@ var C3 = (function () {
5959
function C3() {
6060
}
6161
return C3;
62-
})(); // error -- cannot merge non-ambient class and interface
62+
})();
6363
var C4 = (function () {
6464
function C4() {
6565
}
6666
return C4;
67-
})(); // error -- cannot merge non-ambient class and interface
67+
})();
6868
// checks if properties actually were merged
6969
var c5;
7070
c5.x1;

tests/baselines/reference/mergedClassInterface.symbols

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ interface C2 { }
1313
declare class C2 { }
1414
>C2 : Symbol(C2, Decl(file1.ts, 4, 16), Decl(file1.ts, 6, 16))
1515

16-
class C3 { } // error -- cannot merge non-ambient class and interface
16+
class C3 { }
1717
>C3 : Symbol(C3, Decl(file1.ts, 8, 20), Decl(file1.ts, 10, 12))
1818

19-
interface C3 { } // error -- cannot merge non-ambient class and interface
19+
interface C3 { }
2020
>C3 : Symbol(C3, Decl(file1.ts, 8, 20), Decl(file1.ts, 10, 12))
2121

22-
interface C4 { } // error -- cannot merge non-ambient class and interface
22+
interface C4 { }
2323
>C4 : Symbol(C4, Decl(file1.ts, 12, 16), Decl(file1.ts, 14, 16))
2424

25-
class C4 { } // error -- cannot merge non-ambient class and interface
25+
class C4 { }
2626
>C4 : Symbol(C4, Decl(file1.ts, 12, 16), Decl(file1.ts, 14, 16))
2727

2828
interface C5 {

tests/baselines/reference/mergedClassInterface.types

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ interface C2 { }
1313
declare class C2 { }
1414
>C2 : C2
1515

16-
class C3 { } // error -- cannot merge non-ambient class and interface
16+
class C3 { }
1717
>C3 : C3
1818

19-
interface C3 { } // error -- cannot merge non-ambient class and interface
19+
interface C3 { }
2020
>C3 : C3
2121

22-
interface C4 { } // error -- cannot merge non-ambient class and interface
22+
interface C4 { }
2323
>C4 : C4
2424

25-
class C4 { } // error -- cannot merge non-ambient class and interface
25+
class C4 { }
2626
>C4 : C4
2727

2828
interface C5 {

tests/baselines/reference/nameCollisions.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ tests/cases/compiler/nameCollisions.ts(37,11): error TS2300: Duplicate identifie
8282
interface fi { } // ok
8383

8484
class cli { }
85-
interface cli { } // error
85+
interface cli { }
8686

8787
interface cli2 { }
88-
class cli2 { } // error
88+
class cli2 { }
8989
}

tests/baselines/reference/nameCollisions.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ module T {
4141
interface fi { } // ok
4242

4343
class cli { }
44-
interface cli { } // error
44+
interface cli { }
4545

4646
interface cli2 { }
47-
class cli2 { } // error
47+
class cli2 { }
4848
}
4949

5050
//// [nameCollisions.js]
@@ -102,5 +102,5 @@ var T;
102102
function cli2() {
103103
}
104104
return cli2;
105-
})(); // error
105+
})();
106106
})(T || (T = {}));

tests/cases/compiler/augmentedTypesClass2.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Checking class with other things in type space not value space
22

33
// class then interface
4-
class c11 { // error
4+
class c11 {
55
foo() {
66
return 1;
77
}
88
}
99

10-
interface c11 { // error
10+
interface c11 {
1111
bar(): void;
1212
}
1313

tests/cases/compiler/augmentedTypesInterface.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ interface i {
99
}
1010

1111
// interface then class
12-
interface i2 { // error
12+
interface i2 {
1313
foo(): void;
1414
}
1515

16-
class i2 { // error
16+
class i2 {
1717
bar() {
1818
return 1;
1919
}

tests/cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module M {
22
export interface I { }
33
}
44
module M {
5-
export class I { } // error
5+
export class I { }
66
}
77

88
module M {

tests/cases/compiler/interfaceClassMerging2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Bar extends Foo {
2727

2828

2929
var bar = new Bar();
30-
bar.classFooMethod().interfaceFooMethod().classBarMethod().classFooMethod();
30+
bar.interfaceBarMethod().interfaceFooMethod().classBarMethod().classFooMethod();
3131

3232

3333
var foo = new Foo();

tests/cases/compiler/nameCollisions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ module T {
4040
interface fi { } // ok
4141

4242
class cli { }
43-
interface cli { } // error
43+
interface cli { }
4444

4545
interface cli2 { }
46-
class cli2 { } // error
46+
class cli2 { }
4747
}
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
class C { foo: string; }
2-
interface C { foo: string; } // error
2+
interface C { foo: string; }
33

44
module M {
55
class D {
66
bar: string;
77
}
88

9-
interface D { // error
9+
interface D {
1010
bar: string;
1111
}
1212
}

tests/cases/conformance/classes/classDeclarations/mergedClassInterface.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ interface C2 { }
1010

1111
declare class C2 { }
1212

13-
class C3 { } // error -- cannot merge non-ambient class and interface
13+
class C3 { }
1414

15-
interface C3 { } // error -- cannot merge non-ambient class and interface
15+
interface C3 { }
1616

17-
interface C4 { } // error -- cannot merge non-ambient class and interface
17+
interface C4 { }
1818

19-
class C4 { } // error -- cannot merge non-ambient class and interface
19+
class C4 { }
2020

2121
interface C5 {
2222
x1: number;

0 commit comments

Comments
 (0)