13 lines
412 B
Plaintext
13 lines
412 B
Plaintext
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 {
|
|
} |