30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
=== tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberInitialization.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0))
|
|
|
|
x = 1;
|
|
>x : Symbol(x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
}
|
|
|
|
var c = new C();
|
|
>c : Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3))
|
|
>C : Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0))
|
|
|
|
c.x = 3;
|
|
>c.x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
>c : Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3))
|
|
>x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
|
|
var c2 = new C();
|
|
>c2 : Symbol(c2, Decl(instanceMemberInitialization.ts, 6, 3))
|
|
>C : Symbol(C, Decl(instanceMemberInitialization.ts, 0, 0))
|
|
|
|
var r = c.x === c2.x;
|
|
>r : Symbol(r, Decl(instanceMemberInitialization.ts, 7, 3))
|
|
>c.x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
>c : Symbol(c, Decl(instanceMemberInitialization.ts, 4, 3))
|
|
>x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
>c2.x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
>c2 : Symbol(c2, Decl(instanceMemberInitialization.ts, 6, 3))
|
|
>x : Symbol(C.x, Decl(instanceMemberInitialization.ts, 0, 9))
|
|
|