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 f991a7e commit 4f2e47bCopy full SHA for 4f2e47b
src/dotty/tools/dotc/transform/ValueClasses.scala
@@ -13,6 +13,7 @@ import StdNames._
13
object ValueClasses {
14
15
def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) = {
16
+ !d.isRefinementClass &&
17
d.isValueClass &&
18
(d.initial.symbol ne defn.AnyValClass) && // Compare the initial symbol because AnyVal does not exist after erasure
19
!d.isPrimitiveValueClass
0 commit comments