diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-12-05 07:05:17 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-12-06 23:17:27 +0100 |
commit | bb9adfbd76af0a0281912fcef4bcaca409a7c9a3 (patch) | |
tree | b0b1c692ffb66e7c96b5729fc3e2bba0753b3396 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 838cbe623c142b7005446793948097f679219fe3 (diff) | |
download | scala-bb9adfbd76af0a0281912fcef4bcaca409a7c9a3.tar.gz scala-bb9adfbd76af0a0281912fcef4bcaca409a7c9a3.tar.bz2 scala-bb9adfbd76af0a0281912fcef4bcaca409a7c9a3.zip |
more ListOfNil => Nil
Even more trees (together with Apply nodes produced by templateParents
and New nodes produced by New in TreeBuilders) now distinguish nullary
argument list from empty argument list.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 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 d6be1abdd9..33db4ee2d5 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2106,7 +2106,7 @@ self => def annotationExpr(): Tree = atPos(in.offset) { val t = exprSimpleType() if (in.token == LPAREN) New(t, multipleArgumentExprs()) - else New(t, ListOfNil) + else New(t, Nil) } /* -------- PARAMETERS ------------------------------------------- */ |