2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/privateVisibles.ts ===
|
|
|
|
class Foo {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
private pvar = 0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
var n = this.pvar;
|
2015-04-13 23:01:57 +02:00
|
|
|
>n : number, Symbol(n, Decl(privateVisibles.ts, 3, 8))
|
|
|
|
>this.pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
|
|
>this : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
|
|
|
>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public meth() { var q = this.pvar;}
|
2015-04-13 23:01:57 +02:00
|
|
|
>meth : () => void, Symbol(meth, Decl(privateVisibles.ts, 4, 2))
|
|
|
|
>q : number, Symbol(q, Decl(privateVisibles.ts, 6, 20))
|
|
|
|
>this.pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
|
|
|
>this : Foo, Symbol(Foo, Decl(privateVisibles.ts, 0, 0))
|
|
|
|
>pvar : number, Symbol(pvar, Decl(privateVisibles.ts, 0, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|