Dizarray
11/18/2017, 4:10 AMinterface Columns {
String ID = "ID";
}
If I have Java class, which implements this interface, I can access ID field in this class:
class JavaColumns implements Columns {
...
void test() {
String value = ID; // compiles
}
...
}
But if I have koltin class, which implements this java interface, I can't access ID field:
class KotlinColumns : Columns {
...
fun test() {
val value = ID // error
}
...
}
How can I fix this behavior?