FIR: don't add T <: Unit constraints that will only remove errors
^KT-55693 Fixed
This commit is contained in:
+1
-1
@@ -29,5 +29,5 @@ fun example() {
|
||||
return <!INVALID_IF_AS_EXPRESSION!>if<!> (true) true
|
||||
}
|
||||
|
||||
return if (true) true else {}
|
||||
return <!RETURN_TYPE_MISMATCH!>if (true) true else {}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user