mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
classWithTwoConstructorDefinitions.ts(2,5): error TS2392: Multiple constructor implementations are not allowed.
|
|
classWithTwoConstructorDefinitions.ts(3,5): error TS2392: Multiple constructor implementations are not allowed.
|
|
classWithTwoConstructorDefinitions.ts(7,5): error TS2392: Multiple constructor implementations are not allowed.
|
|
classWithTwoConstructorDefinitions.ts(8,5): error TS2392: Multiple constructor implementations are not allowed.
|
|
|
|
|
|
==== classWithTwoConstructorDefinitions.ts (4 errors) ====
|
|
class C {
|
|
constructor() { } // error
|
|
~~~~~~~~~~~
|
|
!!! error TS2392: Multiple constructor implementations are not allowed.
|
|
constructor(x) { } // error
|
|
~~~~~~~~~~~
|
|
!!! error TS2392: Multiple constructor implementations are not allowed.
|
|
}
|
|
|
|
class D<T> {
|
|
constructor(x: T) { } // error
|
|
~~~~~~~~~~~
|
|
!!! error TS2392: Multiple constructor implementations are not allowed.
|
|
constructor(x: T, y: T) { } // error
|
|
~~~~~~~~~~~
|
|
!!! error TS2392: Multiple constructor implementations are not allowed.
|
|
} |