FIR: Fix inference of nullable unit lambda at RHS of elvis

This commit is contained in:
Denis.Zharkov
2021-11-18 11:15:52 +03:00
committed by teamcityserver
parent 46217318c0
commit c0a46eaefd
6 changed files with 34 additions and 1 deletions
@@ -0,0 +1,8 @@
// FIR_IDENTICAL
// SKIP_TXT
fun nullableF(): (() -> Unit)?= null
fun String.unit() {}
fun foo(x: String?): () -> Unit = nullableF() ?: { x?.unit() }