diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2007-05-03 07:32:35 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2007-05-03 07:32:35 +0000 |
commit | 7cf6a800448e1664d1085f44b3e76abbc7651b25 (patch) | |
tree | 76753f7a044791536ae57df7e6f1910a74adee62 /src | |
parent | d1c4f9e32b3f12f6f03b58be671f24b775c4ae9f (diff) | |
download | scala-7cf6a800448e1664d1085f44b3e76abbc7651b25.tar.gz scala-7cf6a800448e1664d1085f44b3e76abbc7651b25.tar.bz2 scala-7cf6a800448e1664d1085f44b3e76abbc7651b25.zip |
fixed bug 1082
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 8044f2ce5d..9868d83b83 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2171,8 +2171,8 @@ trait Typers requires Analyzer { qual.tpe.widen+" does not have a constructor" else decode(name)+" is not a member of "+qual.tpe.widen + - (if (!inIDE && (context.unit ne null) && (qual.pos).line.get < - tree.pos.line.get) + (if (!inIDE && (context.unit ne null) && + ((for(a <- qual.pos.line; b <- tree.pos.line) yield a < b).getOrElse(false))) "\npossible cause: maybe a semicolon is missing before `"+decode(name)+"'?" else "")) } |