20 lines
298 B
Text
20 lines
298 B
Text
=== tests/cases/conformance/classes/propertyMemberDeclarations/staticMemberInitialization.ts ===
|
|
class C {
|
|
>C : C
|
|
|
|
static x = 1;
|
|
>x : number
|
|
>1 : number
|
|
}
|
|
|
|
var c = new C();
|
|
>c : C
|
|
>new C() : C
|
|
>C : typeof C
|
|
|
|
var r = C.x;
|
|
>r : number
|
|
>C.x : number
|
|
>C : typeof C
|
|
>x : number
|
|
|