2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/implementPublicPropertyAsPrivate.ts (1 errors) ====
|
|
|
|
interface I {
|
|
|
|
x: number;
|
|
|
|
}
|
|
|
|
class C implements I {
|
|
|
|
~
|
|
|
|
!!! Class 'C' incorrectly implements interface 'I':
|
2014-09-17 19:36:32 +02:00
|
|
|
!!! Property 'x' is private in type 'C' but not in type 'I'.
|
2014-07-13 01:04:16 +02:00
|
|
|
private x = 0; // should raise error at class decl
|
|
|
|
}
|