FIR: return Unit from empty lambda
This commit is contained in:
@@ -13,5 +13,7 @@ fun main() {
|
||||
|
||||
val f = { "OK" }
|
||||
val ss = f.invoke()
|
||||
|
||||
val empty: () -> Unit = { }
|
||||
}
|
||||
|
||||
|
||||
@@ -33,4 +33,8 @@ FILE: lambda.kt
|
||||
}
|
||||
|
||||
lval ss: R|kotlin/String| = R|<local>/f|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/String|>|()
|
||||
lval empty: R|() -> kotlin/Unit| = fun <anonymous>(): R|kotlin/Unit| {
|
||||
^ Unit
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user