TypeScript/tests/baselines/reference/staticAsIdentifier.types
Orta Therox 016d78b09e
Allow for class static vars to be called static (#44813)
* Allow for class static vars to be called static - re: #41127

* Add the baselines
2021-10-01 14:28:08 +01:00

63 lines
657 B
Plaintext

=== tests/cases/compiler/staticAsIdentifier.ts ===
class C1 {
>C1 : C1
static static
>static : any
[x: string]: string;
>x : string
}
class C2 {
>C2 : C2
static static
>static : any
m() {}
>m : () => void
}
class C3 {
>C3 : C3
static static p: string;
>static : any
>p : string
}
class C4 {
>C4 : C4
static static foo() {}
>static : any
>foo : () => void
}
class C5 {
>C5 : C5
static static
>static : any
}
class C6 {
>C6 : C6
static
static
>static : any
}
class C7 extends C6 {
>C7 : C7
>C6 : C6
static override static
>static : any
}