galex

    galex

    2 years ago
    In a Composable function, I could not just call
    invoke()
    on a reference of another Composable function, will that work someday?
    m

    Mark Murphy

    2 years ago
    I have had a number of challenges in doing this. The Kotlin compiler plugin magic makes this difficult. FWIW, I filed https://issuetracker.google.com/issues/157590194 for the feature request.
    Adam Powell

    Adam Powell

    2 years ago
    foo.invoke()
    as opposed to
    foo()
    not working is a bug, iirc. Reflection is a bigger question.
    m

    Mark Murphy

    2 years ago
    Oh, yeah, sorry -- I misinterpreted the question. It's https://issuetracker.google.com/issues/149424759 instead. (though in truth I suspect that the scenarios are related, in that call patterns that bypass plugin expectations won't work)
    galex

    galex

    2 years ago
    Cool, happy to see it's on the roadmap 😊