2014-07-13 01:04:16 +02:00
|
|
|
//// [implementPublicPropertyAsPrivate.ts]
|
|
|
|
interface I {
|
|
|
|
x: number;
|
|
|
|
}
|
|
|
|
class C implements I {
|
|
|
|
private x = 0; // should raise error at class decl
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [implementPublicPropertyAsPrivate.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
2014-08-15 22:18:54 +02:00
|
|
|
this.x = 0; // should raise error at class decl
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
return C;
|
|
|
|
})();
|