23 lines
772 B
Text
23 lines
772 B
Text
=== tests/cases/compiler/privateVisibles.ts ===
|
|
class Foo {
|
|
>Foo : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
|
|
|
private pvar = 0;
|
|
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
|
|
constructor() {
|
|
var n = this.pvar;
|
|
>n : Symbol(n, Decl(privateVisibles.ts, 3, 8))
|
|
>this.pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
>this : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
|
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
}
|
|
|
|
public meth() { var q = this.pvar;}
|
|
>meth : Symbol(meth, Decl(privateVisibles.ts, 4, 2))
|
|
>q : Symbol(q, Decl(privateVisibles.ts, 6, 20))
|
|
>this.pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
>this : Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
|
>pvar : Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
}
|
|
|