2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/conflictingMemberTypesInBases.ts(12,11): error TS2320: Interface 'E' cannot simultaneously extend types 'B' and 'D'.
|
2014-09-12 22:35:07 +02:00
|
|
|
Named properties 'm' of types 'B' and 'D' are not identical.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/conflictingMemberTypesInBases.ts (1 errors) ====
|
|
|
|
interface A {
|
|
|
|
m: string;
|
|
|
|
}
|
|
|
|
interface B extends A {
|
|
|
|
}
|
|
|
|
interface C {
|
|
|
|
m: number;
|
|
|
|
}
|
|
|
|
interface D extends C {
|
|
|
|
}
|
|
|
|
|
|
|
|
interface E extends B { } // Error here for extending B and D
|
|
|
|
~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2320: Interface 'E' cannot simultaneously extend types 'B' and 'D'.
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2320: Named properties 'm' of types 'B' and 'D' are not identical.
|
2014-07-13 01:04:16 +02:00
|
|
|
interface E extends D { } // No duplicate error here
|
|
|
|
|