FIR: Replicate coercion-to-unit behavior from FE 1.0

This commit is contained in:
Denis.Zharkov
2021-04-27 15:09:15 +03:00
committed by teamcityserver
parent dac5c31993
commit c67ae8a0a3
10 changed files with 109 additions and 30 deletions
@@ -0,0 +1,11 @@
fun foo(x: (Int) -> Unit) {}
class A {
fun bar() {}
}
fun main(a: A?, y: String) {
foo {
a?.bar() ?: y.get(0)
}
}