summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-16 08:07:17 -0700
committerPaul Phillips <paulp@improving.org>2012-10-22 14:13:53 -0700
commitd7f498ac9cccd7473be8f416a1620548ca8fca9b (patch)
treee9afec34e249414b5ffa67b06de49df6401db5e8 /src
parent6daf9c642578c0af178075f5cc10e2a19c35e12a (diff)
downloadscala-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.scala7
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))
)