Skip to content

Commit 00b4fce

Browse files
smarterDarkDimius
authored andcommitted
Don't consider the temporary refinement classes as derived value classes
1 parent b9a98a6 commit 00b4fce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import StdNames._
1313
object ValueClasses {
1414

1515
def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) = {
16+
!d.isRefinementClass &&
1617
d.isValueClass &&
1718
(d.initial.symbol ne defn.AnyValClass) && // Compare the initial symbol because AnyVal does not exist after erasure
1819
!d.isPrimitiveValueClass

0 commit comments

Comments
 (0)