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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 6 additions & 6 deletions
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))

0 commit comments

Comments
 (0)