FILE: smartcastOnLambda.kt
    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|>|()
            }
        }

    }
