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 778d481 commit 2dbb31fCopy full SHA for 2dbb31f
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