16 lines
No EOL
594 B
Text
16 lines
No EOL
594 B
Text
tests/cases/compiler/baseTypePrivateMemberClash.ts(8,11): error TS2320: Interface 'Z' cannot simultaneously extend types 'X' and 'Y'.
|
|
Named properties 'm' of types 'X' and 'Y' are not identical.
|
|
|
|
|
|
==== tests/cases/compiler/baseTypePrivateMemberClash.ts (1 errors) ====
|
|
class X {
|
|
private m: number;
|
|
}
|
|
class Y {
|
|
private m: string;
|
|
}
|
|
|
|
interface Z extends X, Y { }
|
|
~
|
|
!!! error TS2320: Interface 'Z' cannot simultaneously extend types 'X' and 'Y'.
|
|
!!! error TS2320: Named properties 'm' of types 'X' and 'Y' are not identical. |