swc/crates/swc_ecma_parser/tests/tsc/constructorImplementationWithDefaultValues.ts

20 lines
277 B
TypeScript

class C {
constructor(x);
constructor(x = 1) {
var y = x;
}
}
class D<T> {
constructor(x);
constructor(x:T = null) {
var y = x;
}
}
class E<T extends Date> {
constructor(x);
constructor(x: T = null) {
var y = x;
}
}