Can `FirSupertypeGenerationExtension` add super cl...
# compiler
r
Can
FirSupertypeGenerationExtension
add super classes, i.e. not interfaces? I'm adding a superclass, which results in FIR that looks like
class TestModule : R|kotlin/Any|, R|dev/rnett/lattice/module/BaseModule|
, IR
CLASS CLASS name:TestModule modality:FINAL visibility:public superTypes:[kotlin.Any; dev.rnett.lattice.module.BaseModule]
, and the JVM bytecode
class test/basic/TestModule {
, with only
Object
as the supertype. I could probably do some massaging in the IR to remove
Any
but that seems pretty hacky
s
r
Yeah, I would expect an interface to work. But I'm trying to add a superclass that's an abstract class, and it's not working. I'm guessing because it still gets
Any