Files
tsgo/testdata/baselines/reference/submodule/conformance/redefinedPararameterProperty.js

30 lines
534 B
TypeScript

//// [tests/cases/conformance/classes/propertyMemberDeclarations/redefinedPararameterProperty.ts] ////
//// [redefinedPararameterProperty.ts]
class Base {
a = 1;
}
class Derived extends Base {
b = this.a /*undefined*/;
constructor(public a: number) {
super();
}
}
//// [redefinedPararameterProperty.js]
"use strict";
class Base {
a = 1;
}
class Derived extends Base {
a;
b = this.a /*undefined*/;
constructor(a) {
super();
this.a = a;
}
}