Skip to content

Commit

Permalink
Merge pull request scala#1519 from paulp/no-product-n
Browse files Browse the repository at this point in the history
Disabled generation of _1, _2, etc. methods.
  • Loading branch information
jsuereth committed Oct 24, 2012
2 parents c0fac9e + d7f498a commit 2c55424
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 74 deletions.
Expand Up @@ -206,7 +206,8 @@ trait SyntheticMethods extends ast.TreeDSL {
Select(mkThisSelect(clazz.derivedValueClassUnbox), nme.hashCode_)
}

/** The _1, _2, etc. methods to implement ProductN.
/** The _1, _2, etc. methods to implement ProductN, disabled
* until we figure out how to introduce ProductN without cycles.
*/
def productNMethods = {
val accs = accessors.toIndexedSeq
Expand Down Expand Up @@ -266,13 +267,13 @@ trait SyntheticMethods extends ast.TreeDSL {
Any_equals -> (() => equalsDerivedValueClassMethod)
)

def caseClassMethods = productMethods ++ productNMethods ++ Seq(
def caseClassMethods = productMethods ++ /*productNMethods ++*/ Seq(
Object_hashCode -> (() => chooseHashcode),
Object_toString -> (() => forwardToRuntime(Object_toString)),
Object_equals -> (() => equalsCaseClassMethod)
)

def valueCaseClassMethods = productMethods ++ productNMethods ++ valueClassMethods ++ Seq(
def valueCaseClassMethods = productMethods ++ /*productNMethods ++*/ valueClassMethods ++ Seq(
Any_toString -> (() => forwardToRuntime(Object_toString))
)

Expand Down

0 comments on commit 2c55424

Please sign in to comment.