[JS IC] Fix signature finding in some cases

Found in KFSAD
This commit is contained in:
Roman Artemev
2021-07-30 16:00:37 +03:00
committed by teamcityserver
parent 15648da2b4
commit 9bfe502afd
3 changed files with 6 additions and 5 deletions
@@ -119,9 +119,10 @@ class IrModuleDeserializerWithBuiltIns(
}
override operator fun contains(idSig: IdSignature): Boolean {
if (idSig in irBuiltInsMap) return true
val topLevel = idSig.topLevelSignature()
if (topLevel in irBuiltInsMap) return true
return checkIsFunctionInterface(idSig) || idSig in delegate
return checkIsFunctionInterface(topLevel) || idSig in delegate
}
override fun referenceSimpleFunctionByLocalSignature(file: IrFile, idSignature: IdSignature) : IrSimpleFunctionSymbol =