Skip to content

Commit 4d0971d

Browse files
committed
Merge pull request #408 from dotty-staging/test/#390
New test for valueclasses
2 parents d34a511 + 591e151 commit 4d0971d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ object ValueClasses {
1313

1414
def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) =
1515
d.isClass &&
16-
(d.symbol ne defn.AnyValClass) &&
1716
d.derivesFrom(defn.AnyValClass) &&
17+
(d.symbol ne defn.AnyValClass) &&
1818
!d.isPrimitiveValueClass
1919

2020
def isMethodWithExtension(d: SymDenotation)(implicit ctx: Context) =
File renamed without changes.

0 commit comments

Comments
 (0)