Companion Object inheriting Abstract Class?


#1

Say I have this:

class A {
companion object: AbstractObject(A)
}

There’s no error during typechecking but an error during compiling:

kotlin java.lang.illegalargumentexception: parameter specified as non-null is null


#2

It looks like your passing something to the constructor of the abstract class? Make sure that it is a non null value.