TypeScript/tests/baselines/reference/privateVisibles.types

25 lines
365 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/privateVisibles.ts ===
class Foo {
>Foo : Foo
2014-08-15 23:33:16 +02:00
private pvar = 0;
>pvar : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
constructor() {
var n = this.pvar;
>n : number
>this.pvar : number
>this : Foo
>pvar : number
2014-08-15 23:33:16 +02:00
}
public meth() { var q = this.pvar;}
>meth : () => void
>q : number
>this.pvar : number
>this : Foo
>pvar : number
2014-08-15 23:33:16 +02:00
}