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

13 lines
413 B
Plaintext

==== tests/cases/compiler/privateInterfaceProperties.ts (1 errors) ====
interface i1 { name:string; }
// should be an error
class c1 implements i1 { private name:string; }
~~
!!! Class 'c1' incorrectly implements interface 'i1':
!!! Private property 'name' cannot be reimplemented.
// should be ok
class c2 implements i1 { public name:string; }