28 lines
473 B
JavaScript
28 lines
473 B
JavaScript
|
//// [superCallInConstructorWithNoBaseType.ts]
|
||
|
class C {
|
||
|
constructor() {
|
||
|
super(); // error
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class D<T> {
|
||
|
public constructor(public x: T) {
|
||
|
super(); // error
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [superCallInConstructorWithNoBaseType.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
_super.call(this);
|
||
|
}
|
||
|
return C;
|
||
|
})();
|
||
|
var D = (function () {
|
||
|
function D(x) {
|
||
|
this.x = x;
|
||
|
_super.call(this);
|
||
|
}
|
||
|
return D;
|
||
|
})();
|