-
Notifications
You must be signed in to change notification settings - Fork 413
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
[K2] Incorrect modifier for property from getter/setter #3339
Comments
The behaviour inside IntelliJ IDEA differs based on context, and differs based on usage (i.e it might not show getters/setters in autocomplete, but it doesn't mean it'll show an error if you invoke it manually). So the IDE is flexible, it has fewer constraints. Dokka, on the other hand, only has a single static HTML page for such classes, so we need to figure out what to show our users - do we show them getters and setters? Should We should also ask if K2 changes Java-Kotlin interop in any known and significant way, and if they have any sort of "specification" tests that would make sure the behaviour hasn't changed in a major way. |
Spike: #3576 Is blocking?
|
It is related to #3338 (comment) In Kotlin - visible in subclasses |
The case is pretty synthetic, but I had such code in my project, so
Parent.java
Child.kt
In K1 Child list member is just the same as in the code:
In K2 getter/setter is omitted. But for some reason
protected
wins overpublic
Installation
Parent: Regression testing of K2 analysis, first iteration [Kotlin/JVM] #3328
The text was updated successfully, but these errors were encountered: