From 048fe68a1f533a789bd39b80ce9793861d19df48 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Mon, 14 Mar 2011 20:25:11 +0000 Subject: Closes #4163. no review --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3