I define an enumeration class that implements Neo4j RelationshipType:
enum class MyRelationshipType : RelationshipType {
}
I get the following error:
Inherited platform declarations clash: The following declarations have the same JVM signature (name()Ljava/lang/String;): fun <get-name>(): String fun name(): String
I understand that the method name()from the class Enumand name()from the interface RelationshipTypehas the same signature. This is not a Java problem, but why is it a bug in Kotlin, and how can I get around it?
source
share