diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index f6e4119ea6fd..955d7ad82864 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -418,9 +418,11 @@ object Symbols { def filter(p: Symbol => Boolean): Symbol = if (p(this)) this else NoSymbol /** Is this symbol a user-defined value class? */ - final def isDerivedValueClass(implicit ctx: Context): Boolean = + final def isDerivedValueClass(implicit ctx: Context): Boolean = { + this.derivesFrom(defn.AnyValClass) // Simulate ValueClasses.isDerivedValueClass false // will migrate to ValueClasses.isDerivedValueClass; // unsupported value class code will continue to use this stub while it exists + } /** The current name of this symbol */ final def name(implicit ctx: Context): ThisName = denot.name.asInstanceOf[ThisName]