//Tasks.kt
abstract class Foo : Callable<Unit> {
override fun call() { bar() }
abstract fun bar()
}
//Manager.java
public class FooChild extends Tasks.Foo {
@Override public void bar() { //haha }
}
Class FooChild is highlighed as Error with message:
'call()' in 'Tasks.Foo' clashes with 'call()' in 'java.util.concurrent.Callable'; attempting to use incompatible return type
armaxis
03/12/2019, 11:45 PM
Somewhy it creates another call() method marked as