summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-03-14 20:25:11 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-03-14 20:25:11 +0000
commit048fe68a1f533a789bd39b80ce9793861d19df48 (patch)
tree488f1ed67f79b513a2028135a1abeb59a2bb0286 /src
parentfbf7125dd8df0e682c27069de42bb2c9e4b03ae7 (diff)
downloadscala-048fe68a1f533a789bd39b80ce9793861d19df48.tar.gz
scala-048fe68a1f533a789bd39b80ce9793861d19df48.tar.bz2
scala-048fe68a1f533a789bd39b80ce9793861d19df48.zip
Closes #4163. no review
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index cc515d957a..38392e5dd6 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -977,7 +977,10 @@ self =>
def selector(t: Tree): Tree = {
val point = in.offset
//assert(t.pos.isDefined, t)
- Select(t, ident(false)) setPos r2p(t.pos.startOrPoint, point, in.lastOffset)
+ if (t != EmptyTree)
+ Select(t, ident(false)) setPos r2p(t.pos.startOrPoint, point, in.lastOffset)
+ else
+ errorTermTree // has already been reported
}
/** Path ::= StableId