|
1 | 1 | === tests/cases/compiler/staticAsIdentifier.ts ===
|
2 |
| -class C { |
3 |
| ->C : Symbol(C, Decl(staticAsIdentifier.ts, 0, 0)) |
| 2 | +class C1 { |
| 3 | +>C1 : Symbol(C1, Decl(staticAsIdentifier.ts, 0, 0)) |
4 | 4 |
|
5 | 5 | static static
|
| 6 | +>static : Symbol(C1.static, Decl(staticAsIdentifier.ts, 0, 10)) |
| 7 | + |
6 | 8 | [x: string]: string;
|
7 | 9 | >x : Symbol(x, Decl(staticAsIdentifier.ts, 2, 5))
|
8 | 10 | }
|
| 11 | + |
| 12 | +class C2 { |
| 13 | +>C2 : Symbol(C2, Decl(staticAsIdentifier.ts, 3, 1)) |
| 14 | + |
| 15 | + static static |
| 16 | +>static : Symbol(C2.static, Decl(staticAsIdentifier.ts, 5, 10)) |
| 17 | + |
| 18 | + m() {} |
| 19 | +>m : Symbol(C2.m, Decl(staticAsIdentifier.ts, 6, 17)) |
| 20 | +} |
| 21 | + |
| 22 | +class C3 { |
| 23 | +>C3 : Symbol(C3, Decl(staticAsIdentifier.ts, 8, 1)) |
| 24 | + |
| 25 | + static static p: string; |
| 26 | +>p : Symbol(C3.p, Decl(staticAsIdentifier.ts, 10, 10)) |
| 27 | +} |
| 28 | + |
| 29 | +class C4 { |
| 30 | +>C4 : Symbol(C4, Decl(staticAsIdentifier.ts, 12, 1)) |
| 31 | + |
| 32 | + static static foo() {} |
| 33 | +>foo : Symbol(C4.foo, Decl(staticAsIdentifier.ts, 14, 10)) |
| 34 | +} |
| 35 | + |
0 commit comments