This is thrown from an intrinsics check generated by the compiler. See the decompiled Java:
In an older version of the compiler (screenshot is based on 1.9.21), this check is not generated by the compilor at all, which I assume is why there is no issue in earlier versions of kotlin.
See the decompiled java below:
Not sure whether this belongs here or needs to be solved upstream somehow. If so, maybe there's a workaround of some sort in the meantime?
Using Kotlin 2.0, the following line of code causes a NullPointerException at runtime:
This is thrown from an intrinsics check generated by the compiler. See the decompiled Java:
In an older version of the compiler (screenshot is based on 1.9.21), this check is not generated by the compilor at all, which I assume is why there is no issue in earlier versions of kotlin.
See the decompiled java below:
Not sure whether this belongs here or needs to be solved upstream somehow. If so, maybe there's a workaround of some sort in the meantime?