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