summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-04-03 08:30:05 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-04-03 08:30:05 +0000
commit6948de6a3df8ea8b60818c1bd1435a84ae78a59f (patch)
treee7faf7f541dffa0bb3be1074fad5e529cfd394c6 /src
parent43933f0a8861db124a9b3024e1460ba71d84901a (diff)
downloadscala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.tar.gz
scala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.tar.bz2
scala-6948de6a3df8ea8b60818c1bd1435a84ae78a59f.zip
Fixed isUnbox/isBox methods.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Definitions.scala4
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
}