9 lines
No EOL
308 B
Text
9 lines
No EOL
308 B
Text
==== 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;
|
|
}
|
|
}
|
|
|