We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318c685 commit a9fb3baCopy full SHA for a9fb3ba
src/dotty/tools/dotc/transform/ValueClasses.scala
@@ -14,7 +14,7 @@ object ValueClasses {
14
15
def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) =
16
d.isClass &&
17
- d.derivesFrom(defn.AnyValClass) &&
+ d.derivesFrom(defn.AnyValClass)(ctx.withPhase(d.initial.validFor.phaseId)) &&
18
(d.symbol ne defn.AnyValClass) &&
19
!d.isPrimitiveValueClass
20
0 commit comments