I have a kotlin class that implements an Interface from java. When I use an object from this class as a return from a java lambda function I have type error (Cannot convert to ...) It seems like java only regconizes this object as of Object class, so it means I lose all type information?
NurBahnhof
06/03/2020, 8:52 PM
Ok i found the reason why. My class file has a variable that is top level. So I'm actually calling a static class