You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to check if getY in JavaImpl overrides the getter for val y in MyInterface.
I receive JavaImpl.getYas aKSFunctionDeclarationand forval y, all I have is a KSProperty (not even KSPropertySetter since it is an interface).
Right now, KSFunctionDeclaration.overrides expects a KSFunctionDeclaration.
It could be changed into recieve KSDeclaration but that won't let me distinguish between the setter and getter. It might make sense to have overrides for KSPropertySetter/Getter as well as overridesGetter(ksProperty), overridesSetter(ksProperty).
The text was updated successfully, but these errors were encountered:
It is not possible right now to check if a Java class overrides a field declared in interface/class.
For instance:
I want to check if
getY
inJavaImpl
overrides the getter forval y
inMyInterface
.I receive
JavaImpl.
getYas a
KSFunctionDeclarationand for
val y, all I have is a KSProperty (not even
KSPropertySetter since it is an interface).Right now,
KSFunctionDeclaration.overrides
expects aKSFunctionDeclaration
.It could be changed into recieve
KSDeclaration
but that won't let me distinguish between the setter and getter. It might make sense to have overrides forKSPropertySetter/Getter
as well asoverridesGetter(ksProperty), overridesSetter(ksProperty)
.The text was updated successfully, but these errors were encountered: