diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-04-03 08:30:05 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-04-03 08:30:05 +0000 |
commit | 6948de6a3df8ea8b60818c1bd1435a84ae78a59f (patch) | |
tree | e7faf7f541dffa0bb3be1074fad5e529cfd394c6 /src/compiler | |
parent | 43933f0a8861db124a9b3024e1460ba71d84901a (diff) | |
download | scala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.tar.gz scala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.tar.bz2 scala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.zip |
Fixed isUnbox/isBox methods.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/Definitions.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Definitions.scala b/src/compiler/scala/tools/nsc/symtab/Definitions.scala index 54aa364ddd..2be8f7b034 100644 --- a/src/compiler/scala/tools/nsc/symtab/Definitions.scala +++ b/src/compiler/scala/tools/nsc/symtab/Definitions.scala @@ -462,7 +462,7 @@ trait Definitions requires SymbolTable { def isUnbox(m: Symbol) = m.name == nme.unbox && { m.tpe match { - case MethodType(_, restpe) => (boxMethod get restpe.symbol) match { + case MethodType(_, restpe) => (unboxMethod get restpe.symbol) match { case Some(`m`) => true case _ => false } @@ -472,7 +472,7 @@ trait Definitions requires SymbolTable { def isBox(m: Symbol) = m.name == nme.box && { m.tpe match { - case MethodType(List(argtpe), _) => (unboxMethod get argtpe.symbol) match { + case MethodType(List(argtpe), _) => (boxMethod get argtpe.symbol) match { case Some(`m`) => true case _ => false } |