24 lines
445 B
TypeScript
24 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;
|
|
})();
|