13 lines
447 B
Text
13 lines
447 B
Text
|
==== tests/cases/conformance/classes/members/accessibility/privateStaticMemberAccessibility.ts (2 errors) ====
|
||
|
class Base {
|
||
|
private static foo: string;
|
||
|
}
|
||
|
|
||
|
class Derived extends Base {
|
||
|
static bar = Base.foo; // error
|
||
|
~~~~~~~~
|
||
|
!!! Property 'Base.foo' is inaccessible.
|
||
|
bing = () => Base.foo; // error
|
||
|
~~~~~~~~
|
||
|
!!! Property 'Base.foo' is inaccessible.
|
||
|
}
|