TypeScript/tests/cases/compiler/privateInstanceVisibility.ts

38 lines
487 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
module Test {
export class Example {
private someNumber: number;
public doSomething() {
var that = this;
function innerFunction() {
var num = that.someNumber;
}
}
}
}
class C {
private x: number;
getX() { return this.x; }
clone(other: C) {
this.x = other.x;
}
}