TypeScript/tests/baselines/reference/privateInterfaceProperties.js
2014-07-12 17:30:19 -07:00

23 lines
403 B
JavaScript

//// [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]
var c1 = (function () {
function c1() {
}
return c1;
})();
var c2 = (function () {
function c2() {
}
return c2;
})();