TypeScript/tests/baselines/reference/privateInstanceVisibility.types
2015-04-15 16:44:20 -07:00

68 lines
1 KiB
Plaintext

=== tests/cases/compiler/privateInstanceVisibility.ts ===
module Test {
>Test : typeof Test
export class Example {
>Example : Example
private someNumber: number;
>someNumber : number
public doSomething() {
>doSomething : () => void
var that = this;
>that : Example
>this : Example
function innerFunction() {
>innerFunction : () => void
var num = that.someNumber;
>num : number
>that.someNumber : number
>that : Example
>someNumber : number
}
}
}
}
class C {
>C : C
private x: number;
>x : number
getX() { return this.x; }
>getX : () => number
>this.x : number
>this : C
>x : number
clone(other: C) {
>clone : (other: C) => void
>other : C
>C : C
this.x = other.x;
>this.x = other.x : number
>this.x : number
>this : C
>x : number
>other.x : number
>other : C
>x : number
}
}