summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index c0eb751e06..5107db14ee 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -1792,6 +1792,7 @@ trait Parsers requires SyntaxAnalyzer {
*/
def attribute(): Tree = {
def nameValuePair(): Tree = {
+ accept(VAL);
var pos = in.currentPos;
val aname = atPos(pos) { Ident(ident()) }
accept(EQUALS);