FIR: Render "?" on nullable function types.

This commit is contained in:
Mark Punzalan
2021-04-07 22:11:07 +00:00
committed by TeamCityServer
parent a9cc046ec9
commit 9cf5ac1fbd
11 changed files with 30 additions and 13 deletions
@@ -3,6 +3,10 @@
package test
fun test1(): suspend () -> Unit = null!!
fun test1N(): (suspend () -> Unit)? = null
fun test2(): suspend Int.() -> Int = null!!
fun test2N(): (suspend Int.() -> Int)? = null
fun test3(): List<suspend () -> Unit> = null!!
fun test3N(): List<(suspend () -> Unit)?> = null!!
fun test4(): suspend () -> (suspend () -> Unit) = null!!
fun test4N(): (suspend () -> (suspend () -> Unit)?)? = null
@@ -1,6 +1,10 @@
package test
public fun test1(): suspend () -> kotlin.Unit
public fun test1N(): (suspend () -> kotlin.Unit)?
public fun test2(): suspend kotlin.Int.() -> kotlin.Int
public fun test2N(): (suspend kotlin.Int.() -> kotlin.Int)?
public fun test3(): kotlin.collections.List<suspend () -> kotlin.Unit>
public fun test3N(): kotlin.collections.List<(suspend () -> kotlin.Unit)?>
public fun test4(): suspend () -> suspend () -> kotlin.Unit
public fun test4N(): (suspend () -> (suspend () -> kotlin.Unit)?)?