Overriding a JVM method using Kotlin property
MyKotlinClass is implementing ThirdPartyJavaInterface.
ThirdPartyJavaInterface
public interface ThirdPartyJavaInterface {
String getName();
}
MyKotlinClass
class MyKotlinClass (val name: String) : ThirdPartyJavaInterface
MyKotlinClass is not getting compiled because of Accidental Override error for getName() method by name field.
I do want to override the getName() intentionally. Is there any way to suppress the error by telling the compiler my intention?
One possible...