I've got a Java interface
public interface SampleInterface extends Serializable {
Long getId();
void setId(Long id);
}
and a Kotlin class that is supposed to implement it
open class ClazzImpl() : SampleInterface
private val id: Unit? = null
fun getId(): Long? {
return null
}
fun setId(id: Long?) {
}
However I get a compilation error:
Class ClazzImpl is not abstract and does not implement abstract member public abstract fun setId(id: Long!): Unit defined in com....SampleInterface
any ideas what is wrong?