-
Notifications
You must be signed in to change notification settings - Fork 568
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
JavaScript name hashCode is generated for different inherited members [Kotlin Multiplatform] [JS] #2948
Comments
What's your idea for a fix? |
I don't know wire's internals but it seems it's happening because of a conflict with
I see that in the
A possible solution could be to rename that property to something like |
In a Kotlin Multiplatform project that targets JS, a Wire generated class shows this error in its constructor:
JavaScript name hashCode is generated for different inherited members: var hashCode: Int and fun hashCode(): Int
.Setting
buildersOnly = true
in the plugin configuration (as shown in Wire's js sample) still gives the same error.Fortunately, the build is not broken by that error and the class can still be used without problems, but since I noticed it I thought it was worth reporting it.
Maybe this is a duplicate of #1424, but that issue doesn't have any progress and it is inactive since 2020.
Reproduction Steps
js
as one of the targetswire
gradle plugin andwire-runtime
dependency and add thewire
configuration block in thebuild.gradle.kts
file.proto
file incommonMain/proto
, mine is:Environment
IDE: Android Studio Jellyfish | 2023.3.1
Kotlin Version:
1.9.24
Wire Version: both
4.9.9
and5.0.0-alpha01
(I didn't test older versions)The text was updated successfully, but these errors were encountered: