From 1e890eacbf99e0ac005c0afd256fa86e9d456d84 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 23 Nov 2009 13:58:56 +0000 Subject: == for specialized types will not cause boxing ... == for specialized types will not cause boxing anymore --- src/compiler/scala/tools/nsc/typechecker/Duplicators.scala | 3 +++ 1 file changed, 3 insertions(+) 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) } -- cgit v1.2.3