Skip to content

Commit d7f498a

Browse files
committed
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.
1 parent 6daf9c6 commit d7f498a

File tree

5 files changed

+76
-74
lines changed

5 files changed

+76
-74
lines changed

src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ trait SyntheticMethods extends ast.TreeDSL {
206206
Select(mkThisSelect(clazz.derivedValueClassUnbox), nme.hashCode_)
207207
}
208208

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

269-
def caseClassMethods = productMethods ++ productNMethods ++ Seq(
270+
def caseClassMethods = productMethods ++ /*productNMethods ++*/ Seq(
270271
Object_hashCode -> (() => chooseHashcode),
271272
Object_toString -> (() => forwardToRuntime(Object_toString)),
272273
Object_equals -> (() => equalsCaseClassMethod)
273274
)
274275

275-
def valueCaseClassMethods = productMethods ++ productNMethods ++ valueClassMethods ++ Seq(
276+
def valueCaseClassMethods = productMethods ++ /*productNMethods ++*/ valueClassMethods ++ Seq(
276277
Any_toString -> (() => forwardToRuntime(Object_toString))
277278
)
278279

0 commit comments

Comments
 (0)