TypeScript/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType.errors.txt
2014-07-12 17:30:19 -07:00

22 lines
667 B
Plaintext

==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType.ts (2 errors) ====
class Base {
private x: number;
}
interface Foo extends Base { // error
~~~
!!! Interface 'Foo' incorrectly extends interface 'Base':
!!! Private property 'x' cannot be reimplemented.
x: number;
}
class Base2<T> {
private x: T;
}
interface Foo2<T> extends Base2<T> { // error
~~~~
!!! Interface 'Foo2<T>' incorrectly extends interface 'Base2<T>':
!!! Private property 'x' cannot be reimplemented.
x: number;
}