Youssef Shoaib [MOD]
07/08/2025, 8:58 PMobject
into an open class
that has a companion that implements it?Youssef Shoaib [MOD]
07/08/2025, 9:15 PMpublic abstract class Foo {
public companion object: Foo() {
@JvmField
public val INSTANCE: Foo = this
}
}
Klitos Kyriacou
07/09/2025, 7:58 AMFoo.INSTANCE.getClass()
they would get Foo.class
with the original code, but after the change it would be Foo.Companion.class
.Youssef Shoaib [MOD]
07/09/2025, 9:44 AMephemient
07/13/2025, 8:06 AMephemient
07/13/2025, 8:06 AM