mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
34 lines
493 B
TypeScript
34 lines
493 B
TypeScript
// @declaration: true
|
|
|
|
class A {
|
|
public constructor(a: boolean) // error
|
|
protected constructor(a: number) // error
|
|
private constructor(a: string)
|
|
private constructor() {
|
|
|
|
}
|
|
}
|
|
|
|
class B {
|
|
protected constructor(a: number) // error
|
|
constructor(a: string)
|
|
constructor() {
|
|
|
|
}
|
|
}
|
|
|
|
class C {
|
|
protected constructor(a: number)
|
|
protected constructor(a: string)
|
|
protected constructor() {
|
|
|
|
}
|
|
}
|
|
|
|
class D {
|
|
constructor(a: number)
|
|
constructor(a: string)
|
|
public constructor() {
|
|
|
|
}
|
|
} |