diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-16 00:34:37 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-16 00:34:37 +0000 |
commit | b7395e9f503b25c1dec1abf041cd7869126ebf64 (patch) | |
tree | 1821378fb509ac988a634d3c92193cbb2318f8ce /src/compiler | |
parent | 0a31808f5f190791c1edf4e8c7c34bb72e715946 (diff) | |
download | scala-b7395e9f503b25c1dec1abf041cd7869126ebf64.tar.gz scala-b7395e9f503b25c1dec1abf041cd7869126ebf64.tar.bz2 scala-b7395e9f503b25c1dec1abf041cd7869126ebf64.zip |
Reverted ProductN parent for case classes.
Looks like we will need blood, toil, tears, and sweat. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index b0991a9c83..cfe8716d9f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2687,13 +2687,14 @@ self => if (mods.isCase) { val arity = if (vparamss.isEmpty || vparamss.head.isEmpty) 0 else vparamss.head.size productConstr :: serializableConstr :: { - if (arity == 0 || settings.YnoProductN.value) Nil - else List( - AppliedTypeTree( - productConstrN(arity), - vparamss.head map (vd => vd.tpt.duplicate setPos vd.tpt.pos.focus) - ) - ) + Nil + // if (arity == 0 || settings.YnoProductN.value) Nil + // else List( + // AppliedTypeTree( + // productConstrN(arity), + // vparamss.head map (vd => vd.tpt.duplicate setPos vd.tpt.pos.focus) + // ) + // ) } } else Nil |