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

13 lines
759 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts(2,4): error TS2394: Overload signature is not compatible with function implementation.
tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts(2,8): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList16.ts (2 errors) ====
class C {
foo(a = 4);
~~~~~~~~~~~
!!! error TS2394: Overload signature is not compatible with function implementation.
2014-07-13 01:04:16 +02:00
~~~~~
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
2014-07-13 01:04:16 +02:00
foo(a, b) { }
}