Files
tsgo/testdata/baselines/reference/submodule/conformance/classConstructorParametersAccessibility3.errors.txt

19 lines
520 B
Plaintext

classConstructorParametersAccessibility3.ts(13,1): error TS2454: Variable 'd' is used before being assigned.
==== classConstructorParametersAccessibility3.ts (1 errors) ====
class Base {
constructor(protected p: number) { }
}
class Derived extends Base {
constructor(public p: number) {
super(p);
this.p; // OK
}
}
var d: Derived;
d.p; // public, OK
~
!!! error TS2454: Variable 'd' is used before being assigned.