14 lines
No EOL
544 B
Text
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
|
|
} |