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