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
CompilationException on expected class with companion object #2134
Labels
Comments
The issue indeed happens when there is |
FYI: I simply factored out the expected stuff from the serializable class, which resolved the issue for me. So, this is not a blocker. I finally managed to upgrade to Kotlin 1.8.0-RC2 since I've been stuck on 1.6.10. 🥳 |
sandwwraith
added a commit
to JetBrains/kotlin
that referenced
this issue
Dec 22, 2022
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134
sandwwraith
added a commit
to JetBrains/kotlin
that referenced
this issue
Jan 3, 2023
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134 #KT-55683 Fixed
sandwwraith
added a commit
to JetBrains/kotlin
that referenced
this issue
Jan 9, 2023
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134 #KT-55683 Fixed
sandwwraith
added a commit
to JetBrains/kotlin
that referenced
this issue
Jan 10, 2023
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134 #KT-55683 Fixed
KotlinBuild
pushed a commit
to JetBrains/kotlin
that referenced
this issue
Jan 11, 2023
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134 #KT-55683 Fixed
sandwwraith
added a commit
to JetBrains/kotlin
that referenced
this issue
Jan 17, 2023
…mpanion as it may have no primary constructor (only actual class has it). Refactor & rename Fir2IrGeneratorUtils.kt as having 'Fir' in stacktrace when actual K2 compiler is not used is very confusing. Fixes Kotlin/kotlinx.serialization#2134 #KT-55683 Fixed (cherry picked from commit 2634303)
Fixed in 1.8.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I get a compilation exception for an expected class with a companion object.
To Reproduce
Common sources:
JVM and JS sources (they are identical):
Expected behavior
Compilation which succeeds. :)
Environment
The text was updated successfully, but these errors were encountered: