Hello! I have a Java interface, for example this o...
# getting-started
d
Hello! I have a Java interface, for example this one:
Copy code
interface Columns {
    String ID = "ID";
}
If I have Java class, which implements this interface, I can access ID field in this class:
Copy code
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:
Copy code
class KotlinColumns : Columns {
    ...
    fun test() {
        val value = ID // error
    }
    ...
}
How can I fix this behavior?