FIR: Replicate coercion-to-unit behavior from FE 1.0
This commit is contained in:
committed by
teamcityserver
parent
dac5c31993
commit
c67ae8a0a3
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user