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.
2 parents d34a511 + 591e151 commit 4d0971dCopy full SHA for 4d0971d
src/dotty/tools/dotc/transform/ValueClasses.scala
@@ -13,8 +13,8 @@ object ValueClasses {
13
14
def isDerivedValueClass(d: SymDenotation)(implicit ctx: Context) =
15
d.isClass &&
16
- (d.symbol ne defn.AnyValClass) &&
17
d.derivesFrom(defn.AnyValClass) &&
+ (d.symbol ne defn.AnyValClass) &&
18
!d.isPrimitiveValueClass
19
20
def isMethodWithExtension(d: SymDenotation)(implicit ctx: Context) =
tests/disabled/t2667.scala renamed to tests/pos/t2667.scala
0 commit comments