[IR] Make IrClassifierSymbol a sealed interface

This commit is contained in:
Sergej Jaskiewicz
2023-05-05 12:59:18 +02:00
committed by Space Team
parent 6f20ac4f38
commit 1a371350ea
16 changed files with 38 additions and 38 deletions
@@ -248,11 +248,11 @@ fun findSerializerConstructorForTypeArgumentsSerializers(serializer: IrClass): I
}?.symbol
}
fun IrType.classOrUpperBound(): IrClassSymbol? = when(val cls = classifierOrNull) {
fun IrType.classOrUpperBound(): IrClassSymbol? = when (val cls = classifierOrNull) {
is IrClassSymbol -> cls
is IrScriptSymbol -> cls.owner.targetClass
is IrTypeParameterSymbol -> cls.owner.representativeUpperBound.classOrUpperBound()
else -> null
null -> null
}
/**