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

14 lines
872 B
Plaintext
Raw Normal View History

tests/cases/compiler/ParameterList5.ts(1,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
tests/cases/compiler/ParameterList5.ts(1,16): error TS2369: A parameter property is only allowed in a constructor implementation.
tests/cases/compiler/ParameterList5.ts(1,29): error TS2304: Cannot find name 'C'.
==== tests/cases/compiler/ParameterList5.ts (3 errors) ====
2014-07-13 01:04:16 +02:00
function A(): (public B) => C {
~~~~~~~~~~~~~~~
!!! error TS2355: 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
~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
~
!!! error TS2304: Cannot find name 'C'.
2014-07-13 01:04:16 +02:00
}