[FIR] Consider explicit returns during computing return type of anonymous function
Introduce FirAnonymousFunctionReturnExpressionInfo ^KT-59386
This commit is contained in:
committed by
Space Team
parent
212c10e674
commit
8f5294a508
Vendored
+2
-2
@@ -4,9 +4,9 @@ val a: () -> Int = <!INITIALIZER_TYPE_MISMATCH!>l@ {
|
||||
if (flag) return@l 4
|
||||
}<!>
|
||||
|
||||
val b: () -> Unit = l@ {
|
||||
val b: () -> Unit = <!INITIALIZER_TYPE_MISMATCH!>l@ {
|
||||
if (flag) return@l 4
|
||||
}
|
||||
}<!>
|
||||
|
||||
val c: () -> Any = l@ {
|
||||
if (flag) return@l 4
|
||||
|
||||
Reference in New Issue
Block a user