TypeScript/tests/cases/compiler/privateInterfaceProperties.ts

9 lines
179 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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; }