diff options
author | Martin Odersky <odersky@gmail.com> | 2010-05-25 19:19:06 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-05-25 19:19:06 +0000 |
commit | ddea6d37d4daf581ac557829525af655aa7dd1fd (patch) | |
tree | 7082e80c8324cded992332679bfa5a5a962d411d | |
parent | d38342768a2657b8776d1b6fcf2b8e4b585d4cbf (diff) | |
download | scala-ddea6d37d4daf581ac557829525af655aa7dd1fd.tar.gz scala-ddea6d37d4daf581ac557829525af655aa7dd1fd.tar.bz2 scala-ddea6d37d4daf581ac557829525af655aa7dd1fd.zip |
More thorough fix for #3454
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index f4fa76e6b1..182ae6c21c 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -1787,9 +1787,11 @@ self => mods = mods withPosition (in.token, tokenRange(in)) mods |= Flags.MUTABLE in.nextToken() - } else if (!caseParam) { + } else { if (mods.flags != Flags.PARAMACCESSOR) accept(VAL) - mods |= Flags.PRIVATE | Flags.LOCAL + if (!caseParam) { + mods |= Flags.PRIVATE | Flags.LOCAL + } } if (caseParam) { mods |= Flags.CASEACCESSOR |