TypeScript/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.errors.txt
Wesley Wigham 7748694d60
Relate non-augmenting subtypes without resorting to structural comparison (#43624)
* Relate non-augmenting array subtypes without resorting to structural comparison

* Fix lint

* Generalize performance enhancement

* Cache results, feed through via getNormalizedType to remove error intermediates

* Use newly freed up object flags to limit member setting, fix crash with those object flags

* Move flags because there is no TypeFlags.Reference 🤦
2021-04-27 22:52:12 -07:00

18 lines
653 B
Plaintext

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 'A'.
==== 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 'A'.
private myMethod() { }
}