10 lines
No EOL
348 B
Text
10 lines
No EOL
348 B
Text
==== tests/cases/compiler/implementPublicPropertyAsPrivate.ts (1 errors) ====
|
|
interface I {
|
|
x: number;
|
|
}
|
|
class C implements I {
|
|
~
|
|
!!! Class 'C' incorrectly implements interface 'I':
|
|
!!! Property 'x' is private in type 'C' but not in type 'I'.
|
|
private x = 0; // should raise error at class decl
|
|
} |