I have a Java interface, and need to access it throught my Kotlin application. But it is not working.
// On Java
public interface IMyInterface {
int TEST_OK = 1;
enum MyEnum {
NOK(0),
OK(1);
private int val;
MyEnum(int val) {
this.val = val;
}
}
public final class MyClass implements IMyInterface {
...
}
// And on Kotlin
MyClass.TEST_OK // Works
MyClass.MyEnum.OK // Does not work (Unresolved reference)
IMyInterface.MyEnum.OK // Works
Any lighting?
MyClass.TEST_OKshould not work.