11 lines
365 B
Plaintext
11 lines
365 B
Plaintext
==== tests/cases/compiler/publicMemberImplementedAsPrivateInDerivedClass.ts (1 errors) ====
|
|
interface Qux {
|
|
Bar: number;
|
|
}
|
|
class Foo implements Qux {
|
|
~~~
|
|
!!! error TS2421: Class 'Foo' incorrectly implements interface 'Qux':
|
|
!!! error TS2421: Private property 'Bar' cannot be reimplemented.
|
|
private Bar: number;
|
|
}
|
|
|