6e77e2e810
Also got rid of the 'terminalMessages' concept.
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
tests/cases/compiler/interfacePropertiesWithSameName3.ts(3,11): error TS2320: Interface 'F' cannot simultaneously extend types 'E' and 'D'.
|
|
Named properties 'a' of types 'E' and 'D' are not identical.
|
|
tests/cases/compiler/interfacePropertiesWithSameName3.ts(7,11): error TS2320: Interface 'F2' cannot simultaneously extend types 'E2' and 'D2'.
|
|
Named properties 'a' of types 'E2' and 'D2' are not identical.
|
|
|
|
|
|
==== tests/cases/compiler/interfacePropertiesWithSameName3.ts (2 errors) ====
|
|
interface D { a: number; }
|
|
interface E { a: string; }
|
|
interface F extends E, D { } // error
|
|
~
|
|
!!! error TS2320: Interface 'F' cannot simultaneously extend types 'E' and 'D'.
|
|
!!! error TS2320: Named properties 'a' of types 'E' and 'D' are not identical.
|
|
|
|
class D2 { a: number; }
|
|
class E2 { a: string; }
|
|
interface F2 extends E2, D2 { } // error
|
|
~~
|
|
!!! error TS2320: Interface 'F2' cannot simultaneously extend types 'E2' and 'D2'.
|
|
!!! error TS2320: Named properties 'a' of types 'E2' and 'D2' are not identical.
|
|
|