TypeScript/tests/baselines/reference/missingReturnStatement.errors.txt
2014-09-12 13:35:07 -07:00

13 lines
559 B
Plaintext

tests/cases/compiler/missingReturnStatement.ts(3,22): 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/missingReturnStatement.ts (1 errors) ====
module Test {
export class Bug {
public foo():string {
~~~~~~
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.
}
}
}