9 lines
No EOL
473 B
Text
9 lines
No EOL
473 B
Text
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts (3 errors) ====
|
|
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.
|
|
~~~~~~~~
|
|
!!! A parameter property is only allowed in a constructor implementation.
|
|
~
|
|
!!! Cannot find name 'C'.
|
|
} |