[IR] Allow fast reference path in SymbolTable for wrapped descriptors

This commit is contained in:
Mikhail Glukhikh
2020-06-26 16:28:13 +03:00
parent 90f9b9c1c9
commit 19d115778b
@@ -204,7 +204,11 @@ open class SymbolTable(
descriptorToSymbol[d]
}
} else {
descriptorToSymbol[d]
if (d.isBound()) {
((d.owner as? IrSymbolDeclaration<*>)?.symbol ?: descriptorToSymbol[d]) as S?
} else {
descriptorToSymbol[d]
}
}
}