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

9 lines
473 B
Plaintext
Raw Normal View History

==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts (3 errors) ====
2014-07-13 01:04:16 +02:00
function A(): (public B) => C {
~~~~~~~~~~~~~~~
!!! A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
2014-07-13 01:04:16 +02:00
~~~~~~~~
!!! A parameter property is only allowed in a constructor implementation.
~
!!! Cannot find name 'C'.
}