Revert "[FIR] Fix missing RETURN_TYPE_MISMATCH for labeled return statements"

This reverts commit 8e72f60996

Since some intellij tests are failing
This commit is contained in:
Ivan Kochurkin
2023-09-20 12:28:49 +02:00
parent e9d4de658d
commit 063835488f
9 changed files with 21 additions and 37 deletions
@@ -32,9 +32,9 @@ fun foo() {
// Doesn't work both in K1 and K2, but probably should (KT-58232 for tracking)
val dates3 = <!NEW_INFERENCE_ERROR!>myRun {
when {
else -> return@myRun <!RETURN_TYPE_MISMATCH!>buildList {
else -> return@myRun buildList {
add(4)
}<!>
}
}
}<!>
}