diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-16 08:07:17 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-22 14:13:53 -0700 |
commit | d7f498ac9cccd7473be8f416a1620548ca8fca9b (patch) | |
tree | e9afec34e249414b5ffa67b06de49df6401db5e8 /src | |
parent | 6daf9c642578c0af178075f5cc10e2a19c35e12a (diff) | |
download | scala-d7f498ac9cccd7473be8f416a1620548ca8fca9b.tar.gz scala-d7f498ac9cccd7473be8f416a1620548ca8fca9b.tar.bz2 scala-d7f498ac9cccd7473be8f416a1620548ca8fca9b.zip |
Disabled generation of _1, _2, etc. methods.
This was part of the introduction of ProductN, which had
to go back into pandora's box because of issues with cycles
during typing. These should have been reverted along
with it.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala index 67afb0c118..cc3d980cf1 100644 --- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala +++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala @@ -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 @@ -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)) ) |