TypeScript/tests/baselines/reference/implementPublicPropertyAsPrivate.errors.txt
2014-09-12 13:35:07 -07:00

14 lines
No EOL
544 B
Text

tests/cases/compiler/implementPublicPropertyAsPrivate.ts(4,7): error TS2421: Class 'C' incorrectly implements interface 'I':
Private property 'x' cannot be reimplemented.
==== tests/cases/compiler/implementPublicPropertyAsPrivate.ts (1 errors) ====
interface I {
x: number;
}
class C implements I {
~
!!! error TS2421: Class 'C' incorrectly implements interface 'I':
!!! error TS2421: Private property 'x' cannot be reimplemented.
private x = 0; // should raise error at class decl
}