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

9 lines
308 B
Plaintext

==== tests/cases/compiler/missingReturnStatement1.ts (1 errors) ====
class Foo {
foo(): number {
~~~~~~
!!! A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
//return 4;
}
}