TypeScript/tests/baselines/reference/parserParameterList17.errors.txt
2014-09-12 13:35:07 -07:00

13 lines
792 B
Plaintext

tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts(2,4): error TS2394: Overload signature is not compatible with function implementation.
tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts(2,16): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts (2 errors) ====
class C {
constructor(a = 4);
~~~~~~~~~~~~~~~~~~~
!!! error TS2394: Overload signature is not compatible with function implementation.
~~~~~
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
constructor(a, b) { }
}