6e77e2e810
Also got rid of the 'terminalMessages' concept.
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts(5,11): error TS2430: Interface 'Foo' incorrectly extends interface 'Base'.
|
|
Property 'x' is private in type 'Base' but not in type 'Foo'.
|
|
tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts(13,11): error TS2430: Interface 'Foo2<T>' incorrectly extends interface 'Base2<T>'.
|
|
Property 'x' is private in type 'Base2<T>' but not in type 'Foo2<T>'.
|
|
|
|
|
|
==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts (2 errors) ====
|
|
class Base {
|
|
private x() {}
|
|
}
|
|
|
|
interface Foo extends Base { // error
|
|
~~~
|
|
!!! error TS2430: Interface 'Foo' incorrectly extends interface 'Base'.
|
|
!!! error TS2430: Property 'x' is private in type 'Base' but not in type 'Foo'.
|
|
x(): any;
|
|
}
|
|
|
|
class Base2<T> {
|
|
private x() { }
|
|
}
|
|
|
|
interface Foo2<T> extends Base2<T> { // error
|
|
~~~~
|
|
!!! error TS2430: Interface 'Foo2<T>' incorrectly extends interface 'Base2<T>'.
|
|
!!! error TS2430: Property 'x' is private in type 'Base2<T>' but not in type 'Foo2<T>'.
|
|
x(): any;
|
|
} |