9 lines
No EOL
399 B
Text
9 lines
No EOL
399 B
Text
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList17.ts (2 errors) ====
|
|
class C {
|
|
constructor(a = 4);
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! Overload signature is not compatible with function implementation.
|
|
~~~~~
|
|
!!! A parameter initializer is only allowed in a function or constructor implementation.
|
|
constructor(a, b) { }
|
|
} |