TypeScript/tests/baselines/reference/privateInstanceMemberAccessibility.errors.txt
2014-07-12 17:30:19 -07:00

26 lines
868 B
Plaintext

==== tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts (6 errors) ====
class Base {
private foo: string;
}
class Derived extends Base {
x = super.foo; // error
~~~
!!! Only public methods of the base class are accessible via the 'super' keyword
y() {
return super.foo; // error
~~~
!!! Only public methods of the base class are accessible via the 'super' keyword
}
z: typeof super.foo; // error
~~~~~
!!! Identifier expected.
~~~
!!! Only public methods of the base class are accessible via the 'super' keyword
a: this.foo; // error
~~~~
!!! Type expected.
~~~~~~~~
!!! Property 'Base.foo' is inaccessible.
}