22 lines
403 B
JavaScript
22 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;
|
|
})();
|