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
@@ -1,5 +1,5 @@
FILE: smartcastOnLambda.kt
public final fun test(func: R|() -> kotlin/Unit|): R|kotlin/Unit| {
public final fun test(func: R|(() -> kotlin/Unit)?|): R|kotlin/Unit| {
when () {
!=(R|<local>/func|, Null(null)) -> {
R|<local>/func|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()