pajatopmr
01/27/2019, 8:19 AMval someClass: KClass<out Foo>
is it possible for someClass.objectInstance
to be null? I think the answer is yes but I am struggling to come up with a way to make a test for such a thing. The documentation for objectInstance says, ” …if this class is not an object declaration” so my question really boils down to: how do I define a class that is not an object declaration? And the corollary, can I define a member of a sealed class that is not an object declaration. If you’re inclined to reply, please do so in a thread. Thanks. fwiw, my brain hurts just trying to grok this.Pavlo Liapota
01/27/2019, 8:44 AMobject Bar {
// ...
}
is object declaration.
And usual class declaration:
class Bar {
// ...
}
is not.pajatopmr
01/27/2019, 9:43 PMPavlo Liapota
01/28/2019, 8:23 AMKClass
using default constructor?pajatopmr
01/29/2019, 11:36 AMKClass
instance multiplatform would be nice. If you know how to do that I am all eyes. 🙂