-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coroutines crash when upgrading to Kotlin 1.3.30 - kotlin.coroutines.intrinsics.CoroutineSingletons cannot be cast to java.lang.Boolean #1091
Comments
Which kotlin version it worked? Seems to be a compiler problem. I've reported it here: https://youtrack.jetbrains.com/issue/KT-30997 |
@elizarov Thanks! I have updated the issue. It now contains standalone code that is easy to reproduce. Specifically, it's the |
@ZakTaccardi It seems, the latest 1.3.30 release candidate contains the fix. Can you, please, verify this? |
@ilmirus I actually am unable to. The Kotlin EAP is in a different Maven repository that I am unable to use due to work network proxy restrictions |
I am closing this one, it is a compiler bug (https://youtrack.jetbrains.com/issue/KT-30997) that will be fixed in upcoming 1.3.31. |
Note: it seems the fix for this issue introduced a regression. See https://youtrack.jetbrains.com/issue/KT-31242 |
The following test crashes with the following versions:
Kotlin
1.3.30
(does not crash with1.3.21
)Kotlin Coroutines
1.1.1
The crash that occurs:
Removing
inline
andcrossinline
fixes the issue.Crash does not occur when you specify the default lambda.
inline
andcrossinline
should work 👍Note 1: I tried upgrading to
1.2.0-alpha2
and still had the issue.Note 2: Did not experience the issue in
1.3.21
The text was updated successfully, but these errors were encountered: