-
Notifications
You must be signed in to change notification settings - Fork 30
getOrElse is causing the JVM to crash - https://youtrack.jetbrains.com/issue/KT-29242 #14
Comments
This is a defect on the Kotlin inliner. On the next release we're not inlining getOrElse anymore. Meanwhile try a clean build and report the error to Jetbrains. |
Thanks. A clean build didn't seem to impact things, I'll report it to JetBrains. |
FYI: Looks like getOrElse isn't inlined: fold() is though:
|
JetBrains issue link: https://youtrack.jetbrains.com/issue/KT-33054 |
Without targeting:
everything seems fine.. but when targeting 1.8 there are many problems with inline functions
|
According to https://youtrack.jetbrains.com/issue/KT-29242 this is a bug in the language itself, so nothing specific to Arrow itself. I guess we should revisit this when they release and we bump to Kotlin 1.3.70. |
Bug fixed in kotlin 1.3.70+, tested in https://github.com/dashfwd/arrow_crash with 1.3.70 is working fine I think the issue can be closed now |
Running this code causes the JVM to crash:
The crash is this:
Full code to reproduce is available at https://github.com/dashfwd/arrow_crash
This is using:
The text was updated successfully, but these errors were encountered: