2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts(5,11): error TS2430: Interface 'Foo' incorrectly extends interface 'Base'.
|
2014-09-18 02:05:45 +02:00
|
|
|
Property 'x' is private in type 'Base' but not in type 'Foo'.
|
2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts(13,11): error TS2430: Interface 'Foo2<T>' incorrectly extends interface 'Base2<T>'.
|
2014-09-18 02:05:45 +02:00
|
|
|
Property 'x' is private in type 'Base2<T>' but not in type 'Foo2<T>'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType2.ts (2 errors) ====
|
|
|
|
class Base {
|
|
|
|
private x() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Foo extends Base { // error
|
|
|
|
~~~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2430: Interface 'Foo' incorrectly extends interface 'Base'.
|
|
|
|
!!! error TS2430: Property 'x' is private in type 'Base' but not in type 'Foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
x(): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Base2<T> {
|
|
|
|
private x() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Foo2<T> extends Base2<T> { // error
|
|
|
|
~~~~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! 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>'.
|
2014-07-13 01:04:16 +02:00
|
|
|
x(): any;
|
|
|
|
}
|