TypeScript/tests/baselines/reference/emitClassDeclarationOverloadInES6.js

22 lines
341 B
TypeScript
Raw Normal View History

2015-03-13 00:02:43 +01:00
//// [emitClassDeclarationOverloadInES6.ts]
class C {
constructor(y: any)
constructor(x: number) {
}
}
class D {
constructor(y: any)
constructor(x: number, z="hello") {}
}
2015-03-13 00:02:43 +01:00
//// [emitClassDeclarationOverloadInES6.js]
class C {
constructor(x) {
}
}
class D {
constructor(x, z = "hello") {
}
}