[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
@@ -130,7 +130,6 @@ internal class ExpectToActualDefaultValueCopier(private val irModule: IrModuleFr
override fun getReferencedFunction(symbol: IrFunctionSymbol): IrFunctionSymbol = when (symbol) {
is IrSimpleFunctionSymbol -> getReferencedSimpleFunction(symbol)
is IrConstructorSymbol -> getReferencedConstructor(symbol)
else -> error("Unexpected symbol $symbol ${symbol.descriptor}")
}
override fun getReferencedSimpleFunction(symbol: IrSimpleFunctionSymbol) = when {