[FIR] Fix false positive RETURN_TYPE_MISMATCH in intellij ultimate

This commit is contained in:
Ivan Kochurkin
2022-04-07 16:07:11 +03:00
parent 04da0ba55d
commit 81b1ed9ad4
9 changed files with 14 additions and 11 deletions
@@ -12,7 +12,7 @@ val a: () -> Unit = l@{
val b: () -> Unit = l@{
// Error, coercion can't be applied at this position!
if (true) return@l <!RETURN_TYPE_MISMATCH!>"hello"<!>
if (true) return@l "hello"
// However, this is OK, because here coercion is applied
"hello"