Skip to content

Commit 942c41b

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 942c41b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

91-
// add a VCXXXCompanion superclass
92-
91+
// Add the extension methods, the cast methods u2evt$ and evt2u$, and a VC*Companion superclass
9392
moduleClassSym.copySymDenotation(info =
9493
cinfo.derivedClassInfo(
95-
classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
94+
// FIXME: use of VC*Companion superclasses is disabled until the conflicts with SyntheticMethods are solved.
95+
//classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
9696
decls = decls1))
9797
case _ =>
9898
moduleClassSym

0 commit comments

Comments
 (0)