Skip to content

Commit 6d8ed7b

Browse files
committed
adjust test cases
1 parent a5f3d15 commit 6d8ed7b

9 files changed

+31
-28
lines changed

tests/baselines/reference/staticAsIdentifier.errors.txt

+4
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ tests/cases/compiler/staticAsIdentifier.ts(2,12): error TS1030: 'static' modifie
77
~~~~~~
88
!!! error TS1030: 'static' modifier already seen.
99
[x: string]: string;
10+
}
11+
12+
class CC {
13+
static static;
1014
}

tests/baselines/reference/staticAsIdentifier.js

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
class C {
33
static static
44
[x: string]: string;
5+
}
6+
7+
class CC {
8+
static static;
59
}
610

711
//// [staticAsIdentifier.js]
@@ -10,3 +14,8 @@ var C = /** @class */ (function () {
1014
}
1115
return C;
1216
}());
17+
var CC = /** @class */ (function () {
18+
function CC() {
19+
}
20+
return CC;
21+
}());

tests/baselines/reference/staticAsIdentifier.symbols

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ class C {
66
[x: string]: string;
77
>x : Symbol(x, Decl(staticAsIdentifier.ts, 2, 5))
88
}
9+
10+
class CC {
11+
>CC : Symbol(CC, Decl(staticAsIdentifier.ts, 3, 1))
12+
13+
static static;
14+
>static : Symbol(CC.static, Decl(staticAsIdentifier.ts, 5, 10))
15+
}

tests/baselines/reference/staticAsIdentifier.types

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ class C {
66
[x: string]: string;
77
>x : string
88
}
9+
10+
class CC {
11+
>CC : CC
12+
13+
static static;
14+
>static : any
15+
}

tests/baselines/reference/staticIndexer.js

-11
This file was deleted.

tests/baselines/reference/staticIndexer.symbols

-7
This file was deleted.

tests/baselines/reference/staticIndexer.types

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
class C {
22
static static
33
[x: string]: string;
4+
}
5+
6+
class CC {
7+
static static;
48
}

tests/cases/compiler/staticIndexer.ts

-3
This file was deleted.

0 commit comments

Comments
 (0)