13 lines
No EOL
412 B
Text
13 lines
No EOL
412 B
Text
tests/cases/compiler/functionWithNoBestCommonType1.ts(1,10): error TS2354: No best common type exists among return expressions.
|
|
|
|
|
|
==== tests/cases/compiler/functionWithNoBestCommonType1.ts (1 errors) ====
|
|
function foo() {
|
|
~~~
|
|
!!! error TS2354: No best common type exists among return expressions.
|
|
return true;
|
|
return bar();
|
|
}
|
|
|
|
function bar(): void {
|
|
} |