This is the issue blocking me on upgrading Strikt ...
# strikt
r
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
d
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.
r
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
r
yep
d
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
r
yeah, this is turning out to be a pain to replicate
okay, the receiver on the lambda is the thing that triggers it
d
Nice! I hope that'll get fixed soon... it seems like even trying to box it doesn't help.