We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b8e60 commit 683a772Copy full SHA for 683a772
compiler/src/dotty/tools/dotc/transform/Bridges.scala
@@ -45,11 +45,10 @@ class Bridges(root: ClassSymbol)(implicit ctx: Context) {
45
* The bridge has the erased info of `other` and forwards to `member`.
46
*/
47
private def addBridgeIfNeeded(member: Symbol, other: Symbol) = {
48
- val otherInfo = erasure(other.info)
49
def bridgeExists =
50
bridgesScope.lookupAll(member.name).exists(bridge =>
51
- bridgeTarget(bridge) == member && bridge.info =:= otherInfo)
52
- if (!(member.is(Inline) || other.info =:= member.info || bridgeExists))
+ bridgeTarget(bridge) == member && bridge.signature == other.signature)
+ if (!(member.is(Inline) || member.signature == other.signature || bridgeExists))
53
addBridge(member, other)
54
}
55
0 commit comments