data class Bar(
var foo: String = "",
var isFoo: String = ""
)
compiler reports error:
Platform declaration clash: The following declarations have the same JVM signature (setFoo(Ljava/lang/String;)V): public final fun (<set-?>: String?): Unit defined in com.example.Bar public final fun (<set-?>: String?): Unit defined in com.example.Bar
how to tip the compiler use original field name for setters? (setFoo and setIsFoo) NOTICE: the code is generated by jooq(from database schema), so manually change the code is not a good way