mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
20 lines
277 B
TypeScript
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;
|
|
}
|
|
} |