23 lines
318 B
Plaintext
23 lines
318 B
Plaintext
|
=== tests/cases/compiler/inheritanceStaticFunctionOverridingInstanceProperty.ts ===
|
||
|
class a {
|
||
|
>a : a
|
||
|
|
||
|
x: string;
|
||
|
>x : string
|
||
|
}
|
||
|
|
||
|
class b extends a {
|
||
|
>b : b
|
||
|
>a : a
|
||
|
|
||
|
static x() {
|
||
|
>x : () => string
|
||
|
|
||
|
return new b().x;
|
||
|
>new b().x : string
|
||
|
>new b() : b
|
||
|
>b : typeof b
|
||
|
>x : string
|
||
|
}
|
||
|
}
|