stepango
05/10/2017, 11:52 AMFunction0<Unit> but getting return type void is not compatible with Unit
where R is a type-variable:
R extends Object declared in interface Function0 from the other hand i can't specify return type as kotlin.Unit in java.
Is there any way to do it?miha-x64
05/10/2017, 12:01 PMkotlin.Unit type and kotlin.Unit.INSTANCE object from Java.stepango
05/10/2017, 12:05 PMfunname clashes with funname; incompatible return typemiha-x64
05/10/2017, 12:07 PMpublic class KFuncExample implements kotlin.jvm.functions.Function0<Unit> {
@Override public Unit invoke() {
return Unit.INSTANCE;
}
}