mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +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;
|
|
}
|
|
} |