robfletcher

    robfletcher

    1 year ago
    This is the issue blocking me on upgrading Strikt to Kotlin 1.5 (I don’t think it will bite you using existing Strikt releases with 1.5 unless you use
    Assertion.Builder<Result<*>>
    ) https://youtrack.jetbrains.com/issue/KT-46890
    dave08

    dave08

    1 year ago
    Did you try forcing boxing it before? If the compiler thinks it HAS to box it, you might always have a Result class instance like you're expecting.
    As a rule of thumb, inline classes are boxed whenever they are used as another type.
    robfletcher

    robfletcher

    1 year ago
    Damn, the example I attached to the issue failed in a scratch file in the Strikt project, but I’m having trouble recreating it in isolation
    robfletcher

    robfletcher

    1 year ago
    yep
    dave08

    dave08

    1 year ago
    Maybe it's getting boxed for some reason where you're using it?
    I know in our project it was failing since 1.4 on IR...
    Not just in a scratch file
    robfletcher

    robfletcher

    1 year ago
    yeah, this is turning out to be a pain to replicate
    okay, the receiver on the lambda is the thing that triggers it
    dave08

    dave08

    1 year ago
    Nice! I hope that'll get fixed soon... it seems like even trying to box it doesn't help.