23 lines
429 B
Text
23 lines
429 B
Text
=== tests/cases/compiler/staticMemberAccessOffDerivedType1.ts ===
|
|
class SomeBase {
|
|
>SomeBase : SomeBase
|
|
|
|
static GetNumber() {
|
|
>GetNumber : () => number
|
|
|
|
return 2;
|
|
>2 : number
|
|
}
|
|
}
|
|
class P extends SomeBase {
|
|
>P : P
|
|
>SomeBase : SomeBase
|
|
|
|
static SomeNumber = P.GetNumber();
|
|
>SomeNumber : number
|
|
>P.GetNumber() : number
|
|
>P.GetNumber : () => number
|
|
>P : typeof P
|
|
>GetNumber : () => number
|
|
}
|
|
|