24 lines
367 B
Text
24 lines
367 B
Text
=== tests/cases/compiler/privateVisibles.ts ===
|
|
class Foo {
|
|
>Foo : Foo
|
|
|
|
private pvar = 0;
|
|
>pvar : number
|
|
>0 : number
|
|
|
|
constructor() {
|
|
var n = this.pvar;
|
|
>n : number
|
|
>this.pvar : number
|
|
>this : this
|
|
>pvar : number
|
|
}
|
|
|
|
public meth() { var q = this.pvar;}
|
|
>meth : () => void
|
|
>q : number
|
|
>this.pvar : number
|
|
>this : this
|
|
>pvar : number
|
|
}
|
|
|