2014-07-19 00:19:23 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts (3 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
function A(): (public B) => C {
|
2014-07-19 00:19:23 +02:00
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
!!! A function whose declared type is neither 'void' nor 'any' must have a 'return' expression 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'.
|
|
|
|
}
|