20 lines
712 B
Text
20 lines
712 B
Text
=== tests/cases/conformance/classes/propertyMemberDeclarations/staticMemberInitialization.ts ===
|
|
class C {
|
|
>C : C, Symbol(C,Decl(staticMemberInitialization.ts,0,0))
|
|
|
|
static x = 1;
|
|
>x : number, Symbol(C.x,Decl(staticMemberInitialization.ts,0,9))
|
|
>1 : number
|
|
}
|
|
|
|
var c = new C();
|
|
>c : C, Symbol(c,Decl(staticMemberInitialization.ts,4,3))
|
|
>new C() : C
|
|
>C : typeof C, Symbol(C,Decl(staticMemberInitialization.ts,0,0))
|
|
|
|
var r = C.x;
|
|
>r : number, Symbol(r,Decl(staticMemberInitialization.ts,5,3))
|
|
>C.x : number, Symbol(C.x,Decl(staticMemberInitialization.ts,0,9))
|
|
>C : typeof C, Symbol(C,Decl(staticMemberInitialization.ts,0,0))
|
|
>x : number, Symbol(C.x,Decl(staticMemberInitialization.ts,0,9))
|
|
|