TypeScript/tests/baselines/reference/privateInterfaceProperties.js
2014-08-14 06:42:18 -07:00

25 lines
445 B
TypeScript

//// [privateInterfaceProperties.ts]
interface i1 { name:string; }
// should be an error
class c1 implements i1 { private name:string; }
// should be ok
class c2 implements i1 { public name:string; }
//// [privateInterfaceProperties.js]
// should be an error
var c1 = (function () {
function c1() {
}
return c1;
})();
// should be ok
var c2 = (function () {
function c2() {
}
return c2;
})();