summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2009-11-23 13:58:56 +0000
committerIulian Dragos <jaguarul@gmail.com>2009-11-23 13:58:56 +0000
commit1e890eacbf99e0ac005c0afd256fa86e9d456d84 (patch)
treef18a594f4f937e7fc4fda4de5cba96733436f112 /src/compiler
parent27bc36b7a951301bd901cf5c9b152bdc6a187890 (diff)
downloadscala-1e890eacbf99e0ac005c0afd256fa86e9d456d84.tar.gz
scala-1e890eacbf99e0ac005c0afd256fa86e9d456d84.tar.bz2
scala-1e890eacbf99e0ac005c0afd256fa86e9d456d84.zip
== for specialized types will not cause boxing ...
== for specialized types will not cause boxing anymore
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Duplicators.scala3
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)
}