18 lines
281 B
TypeScript
18 lines
281 B
TypeScript
//// [propertyAccessibility1.ts]
|
|
class Foo {
|
|
private privProp = 0;
|
|
}
|
|
var f = new Foo();
|
|
f.privProp;
|
|
|
|
|
|
//// [propertyAccessibility1.js]
|
|
var Foo = (function () {
|
|
function Foo() {
|
|
this.privProp = 0;
|
|
}
|
|
return Foo;
|
|
}());
|
|
var f = new Foo();
|
|
f.privProp;
|