TypeScript/tests/baselines/reference/constructorOverloadsWithDefaultValues.errors.txt

18 lines
618 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorOverloadsWithDefaultValues.ts (2 errors) ====
class C {
foo: string;
constructor(x = 1); // error
~~~~~
!!! A parameter initializer is only allowed in a function or constructor implementation.
constructor() {
}
}
class D<T> {
foo: string;
constructor(x = 1); // error
~~~~~
!!! A parameter initializer is only allowed in a function or constructor implementation.
constructor() {
}
}