FIR: return Unit from empty lambda

This commit is contained in:
Mikhail Glukhikh
2020-04-20 11:33:47 +03:00
parent c5dea02074
commit fe02c2bab3
23 changed files with 132 additions and 103 deletions
@@ -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
}
}