Files
tsgo/testdata/baselines/reference/submodule/compiler/bases.js

41 lines
468 B
TypeScript

//// [tests/cases/compiler/bases.ts] ////
//// [bases.ts]
interface I {
x;
}
class B {
constructor() {
this.y: any;
}
}
class C extends B implements I {
constructor() {
this.x: any;
}
}
new C().x;
new C().y;
//// [bases.js]
"use strict";
class B {
constructor() {
this.y;
any;
}
}
class C extends B {
constructor() {
this.x;
any;
}
}
new C().x;
new C().y;