TypeScript/tests/baselines/reference/inferredFunctionReturnTypeIsEmptyType.errors.txt
2014-07-12 17:30:19 -07:00

19 lines
423 B
Plaintext

==== tests/cases/compiler/inferredFunctionReturnTypeIsEmptyType.ts (1 errors) ====
function foo() {
~~~~~~~~~~~~~~~~
if (true) {
~~~~~~~~~~~~~~~
return 42;
~~~~~~~~~~~~~~~~~~
}
~~~~~
else {
~~~~~~~~~~
return "42";
~~~~~~~~~~~~~~~~~~~~
}
~~~~~
};
~
!!! No best common type exists among return expressions.