diff options
-rw-r--r-- | src/dotty/tools/dotc/transform/ValueClasses.scala | 2 | ||||
-rw-r--r-- | tests/pos/t2667.scala (renamed from tests/disabled/t2667.scala) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/ValueClasses.scala b/src/dotty/tools/dotc/transform/ValueClasses.scala index 2d44ed826..1527d46bb 100644 --- a/src/dotty/tools/dotc/transform/ValueClasses.scala +++ b/src/dotty/tools/dotc/transform/ValueClasses.scala @@ -13,8 +13,8 @@ object ValueClasses { def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) = d.isClass && - (d.symbol ne defn.AnyValClass) && d.derivesFrom(defn.AnyValClass) && + (d.symbol ne defn.AnyValClass) && !d.isPrimitiveValueClass def isMethodWithExtension(d: SymDenotation)(implicit ctx: Context) = diff --git a/tests/disabled/t2667.scala b/tests/pos/t2667.scala index 600c1eaf0..600c1eaf0 100644 --- a/tests/disabled/t2667.scala +++ b/tests/pos/t2667.scala |