18 lines
No EOL
653 B
Text
18 lines
No EOL
653 B
Text
tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts(7,7): error TS2415: Class 'C' incorrectly extends base class 'B'.
|
|
Property 'myMethod' is private in type 'C' but not in type 'B'.
|
|
|
|
|
|
==== tests/cases/compiler/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.ts (1 errors) ====
|
|
class A {
|
|
public 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 'C' but not in type 'B'.
|
|
private myMethod() { }
|
|
}
|
|
|