17 lines
No EOL
897 B
Text
17 lines
No EOL
897 B
Text
tests/cases/conformance/classes/members/accessibility/privateStaticMemberAccessibility.ts(6,18): error TS2341: Property 'foo' is private and only accessible within class 'Base'.
|
|
tests/cases/conformance/classes/members/accessibility/privateStaticMemberAccessibility.ts(7,18): error TS2341: Property 'foo' is private and only accessible within class 'Base'.
|
|
|
|
|
|
==== 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
|
|
~~~~~~~~
|
|
!!! error TS2341: Property 'foo' is private and only accessible within class 'Base'.
|
|
bing = () => Base.foo; // error
|
|
~~~~~~~~
|
|
!!! error TS2341: Property 'foo' is private and only accessible within class 'Base'.
|
|
} |