2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts(7,7): error TS2415: Class 'C' incorrectly extends base class 'B'.
|
2014-09-18 02:05:45 +02:00
|
|
|
Types have separate declarations of a private property 'myMethod'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/inheritanceGrandParentPrivateMemberCollision.ts (1 errors) ====
|
|
|
|
class A {
|
|
|
|
private myMethod() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class B extends A { }
|
|
|
|
|
|
|
|
class C extends B {
|
|
|
|
~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2415: Class 'C' incorrectly extends base class 'B'.
|
|
|
|
!!! error TS2415: Types have separate declarations of a private property 'myMethod'.
|
2014-07-13 01:04:16 +02:00
|
|
|
private myMethod() { }
|
|
|
|
}
|
|
|
|
|