TypeScript/tests/baselines/reference/classWithTwoConstructorDefinitions.errors.txt
2014-07-12 17:30:19 -07:00

14 lines
491 B
Plaintext

==== tests/cases/conformance/classes/constructorDeclarations/classWithTwoConstructorDefinitions.ts (2 errors) ====
class C {
constructor() { }
constructor(x) { } // error
~~~~~~~~~~~~~~~~~~
!!! Multiple constructor implementations are not allowed.
}
class D<T> {
constructor(x: T) { }
constructor(x: T, y: T) { } // error
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! Multiple constructor implementations are not allowed.
}