raiseTo

inline fun IrType.raiseTo(predicate: (IrType) -> Boolean): IrType

Gets the lowest superclass or this that matches the predicate. Helpful for discovering the type parameters of supertypes.


fun IrType.raiseTo(classifier: IrClassifierSymbol): IrType

Gets the lowest superclass or this that has the given classifier. Helpful for discovering the type parameters of supertypes.

Uses supertypesWithSubstitution