2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/baseTypePrivateMemberClash.ts(8,11): error TS2320: Interface 'Z' cannot simultaneously extend types 'X' and 'Y'.
|
2014-09-12 22:35:07 +02:00
|
|
|
Named properties 'm' of types 'X' and 'Y' are not identical.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/baseTypePrivateMemberClash.ts (1 errors) ====
|
|
|
|
class X {
|
|
|
|
private m: number;
|
|
|
|
}
|
|
|
|
class Y {
|
|
|
|
private m: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Z extends X, Y { }
|
|
|
|
~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2320: Interface 'Z' cannot simultaneously extend types 'X' and 'Y'.
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2320: Named properties 'm' of types 'X' and 'Y' are not identical.
|