diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-26 06:00:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-26 06:00:20 +0000 |
commit | 6d22805793cd25427469cceb89258fdbca42630b (patch) | |
tree | 557d028059713104df1d15af87af17326d0943ab /src | |
parent | cab41b68581f32e56491b4bfdcbb931a4abe3689 (diff) | |
download | scala-6d22805793cd25427469cceb89258fdbca42630b.tar.gz scala-6d22805793cd25427469cceb89258fdbca42630b.tar.bz2 scala-6d22805793cd25427469cceb89258fdbca42630b.zip |
Case accessors are always public else the patte...
Case accessors are always public else the pattern matcher goes south. A
more discriminating fix may be possible at some point, but it looks to
be an involved endeavor. Closes #3714, review by odersky.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala index 50e150c211..61894092f3 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala @@ -222,7 +222,7 @@ trait SyntheticMethods extends ast.TreeDSL { case DefDef(_, _, _, _, _, rhs) => var newAcc = tree.symbol.cloneSymbol newAcc.name = context.unit.fresh.newName(tree.symbol.pos.focus, tree.symbol.name + "$") - newAcc setFlag SYNTHETIC resetFlag (ACCESSOR | PARAMACCESSOR | PRIVATE) + newAcc setFlag SYNTHETIC resetFlag (ACCESSOR | PARAMACCESSOR | PRIVATE | PROTECTED) newAcc.privateWithin = NoSymbol newAcc = newAcc.owner.info.decls enter newAcc val result = typer typed { DEF(newAcc) === rhs.duplicate } |