2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatHidesBaseProperty2.ts (1 errors) ====
|
|
|
|
interface Base {
|
|
|
|
x: { a: number };
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Derived extends Base { // error
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2429: Interface 'Derived' incorrectly extends interface 'Base':
|
|
|
|
!!! error TS2429: Types of property 'x' are incompatible:
|
|
|
|
!!! error TS2429: Type '{ a: string; }' is not assignable to type '{ a: number; }':
|
|
|
|
!!! error TS2429: Types of property 'a' are incompatible:
|
|
|
|
!!! error TS2429: Type 'string' is not assignable to type 'number'.
|
2014-07-13 01:04:16 +02:00
|
|
|
x: {
|
|
|
|
a: string;
|
|
|
|
};
|
|
|
|
}
|