Skip to content

Commit e511abd

Browse files
committed
Disable the use of VC*Companion super classes for now
They declare final methods which are overriden in SyntheticMethods, which means that all value classes fail at runtime. Disabling them makes it possible to add run tests for value classes which will make it easier to experiment with changes to value classes.
1 parent c8b1639 commit e511abd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dotty/tools/dotc/transform/ExtensionMethods.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful
8888
decls1.enter(evt2uSym)
8989
}
9090

91-
// add a VCXXXCompanion superclass
92-
9391
moduleClassSym.copySymDenotation(info =
9492
cinfo.derivedClassInfo(
95-
classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
93+
// Disable the use of VC*Companion super classes until the conflicts with SyntheticMethods are solved.
94+
//classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
9695
decls = decls1))
9796
case _ =>
9897
moduleClassSym

0 commit comments

Comments
 (0)