2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/interfacePropertiesWithSameName3.ts(3,11): error TS2320: Interface 'F' cannot simultaneously extend types 'E' and 'D'.
|
2015-02-05 04:32:13 +01:00
|
|
|
Named property 'a' of types 'E' and 'D' are not identical.
|
2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/interfacePropertiesWithSameName3.ts(7,11): error TS2320: Interface 'F2' cannot simultaneously extend types 'E2' and 'D2'.
|
2015-02-05 04:32:13 +01:00
|
|
|
Named property 'a' of types 'E2' and 'D2' are not identical.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/interfacePropertiesWithSameName3.ts (2 errors) ====
|
|
|
|
interface D { a: number; }
|
|
|
|
interface E { a: string; }
|
|
|
|
interface F extends E, D { } // error
|
|
|
|
~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2320: Interface 'F' cannot simultaneously extend types 'E' and 'D'.
|
2015-02-05 04:32:13 +01:00
|
|
|
!!! error TS2320: Named property 'a' of types 'E' and 'D' are not identical.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
class D2 { a: number; }
|
|
|
|
class E2 { a: string; }
|
|
|
|
interface F2 extends E2, D2 { } // error
|
|
|
|
~~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2320: Interface 'F2' cannot simultaneously extend types 'E2' and 'D2'.
|
2015-02-05 04:32:13 +01:00
|
|
|
!!! error TS2320: Named property 'a' of types 'E2' and 'D2' are not identical.
|
2014-07-13 01:04:16 +02:00
|
|
|
|