6e77e2e810
Also got rid of the 'terminalMessages' concept.
18 lines
653 B
Plaintext
18 lines
653 B
Plaintext
tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts(7,7): error TS2415: Class 'C' incorrectly extends base class 'B'.
|
|
Property 'myMethod' is private in type 'B' but not in type 'C'.
|
|
|
|
|
|
==== tests/cases/compiler/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.ts (1 errors) ====
|
|
class A {
|
|
private myMethod() { }
|
|
}
|
|
|
|
class B extends A { }
|
|
|
|
class C extends B {
|
|
~
|
|
!!! error TS2415: Class 'C' incorrectly extends base class 'B'.
|
|
!!! error TS2415: Property 'myMethod' is private in type 'B' but not in type 'C'.
|
|
public myMethod() { }
|
|
}
|
|
|