25 lines
489 B
TypeScript
25 lines
489 B
TypeScript
//// [superCallFromClassThatHasNoBaseType1.ts]
|
|
|
|
class A {
|
|
constructor(private map: (value: number) => string) {
|
|
|
|
}
|
|
}
|
|
|
|
class B {
|
|
constructor() { super(value => String(value)); }
|
|
}
|
|
|
|
//// [superCallFromClassThatHasNoBaseType1.js]
|
|
var A = (function () {
|
|
function A(map) {
|
|
this.map = map;
|
|
}
|
|
return A;
|
|
})();
|
|
var B = (function () {
|
|
function B() {
|
|
_super.call(this, function (value) { return String(value); });
|
|
}
|
|
return B;
|
|
})();
|