diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-11-23 13:58:56 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-11-23 13:58:56 +0000 |
commit | 1e890eacbf99e0ac005c0afd256fa86e9d456d84 (patch) | |
tree | f18a594f4f937e7fc4fda4de5cba96733436f112 | |
parent | 27bc36b7a951301bd901cf5c9b152bdc6a187890 (diff) | |
download | scala-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
-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) } |