FIR: Fix inference of nullable unit lambda at RHS of elvis
This commit is contained in:
committed by
teamcityserver
parent
46217318c0
commit
c0a46eaefd
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// FIR_IDENTICAL
|
||||
// SKIP_TXT
|
||||
|
||||
fun nullableF(): (() -> Unit)?= null
|
||||
|
||||
fun String.unit() {}
|
||||
|
||||
fun foo(x: String?): () -> Unit = nullableF() ?: { x?.unit() }
|
||||
Reference in New Issue
Block a user