Anyone has an example how to construct a type like...
# compiler
t
Anyone has an example how to construct a type like `Some<T>`in
FirDeclarationGenerationExtension
? I would like to generate class that has the type parameter `T`and add a function to that class that returns with
Some<T>
. So the generated class would look like this:
Copy code
class SomeClass<T> : SomeAncestor<T> {
    override build() : SomeAncestor<T>
}
Solved this one:
Copy code
override fun generateTopLevelClassLikeDeclaration(classId: ClassId): FirClassLikeSymbol<*> =
        createTopLevelClass(
            classId,
            BasePluginKey
        ) {
            typeParameter(<http://Names.BT|Names.BT>)
            superType { ClassIds.ADAPTIVE_FRAGMENT.constructClassLikeType(arrayOf(it.first().toConeType()), false) }
        }.symbol