diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Duplicators.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala index c9a2a377c1..796d6f8134 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala @@ -241,6 +241,9 @@ abstract class Duplicators extends Analyzer { super.typed(atPos(tree.pos)(tree1)) case _ => + if (tree.hasSymbol && tree.symbol != NoSymbol && (tree.symbol.owner == definitions.AnyClass)) { + tree.symbol = NoSymbol // maybe we can find a more specific member in a subclass of Any + } tree.tpe = null super.typed(tree, mode, pt) } |