13 lines
No EOL
413 B
Text
13 lines
No EOL
413 B
Text
==== 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; }
|
|
|
|
|