[IR] Make IrFunctionSymbol a sealed interface

This commit is contained in:
Sergej Jaskiewicz
2023-05-05 13:45:40 +02:00
committed by Space Team
parent d0ca89f0a0
commit 6c211f3a39
9 changed files with 5 additions and 13 deletions
@@ -708,7 +708,6 @@ internal class PartiallyLinkedIrTreePatcher(
val expectedDispatchReceiverClassifier: IrClassSymbol = when (symbol) {
is IrSimpleFunctionSymbol -> function.parent as? IrClass
is IrConstructorSymbol -> (function.parent as? IrClass)?.takeIf { it.isInner }?.parent as? IrClass
else -> null
}?.symbol ?: return@run false
val referenceType: IrSimpleType = type as? IrSimpleType ?: return@run false