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.
1 parent 4a0c271 commit 90e9bd2Copy full SHA for 90e9bd2
src/dotty/tools/dotc/transform/VCParents.scala
@@ -152,7 +152,8 @@ class VCParents extends MiniPhaseTransform with DenotTransformer {
152
case Apply(TypeApply(_, tptr :: _), _) if (tree.fun.symbol eq scala2ClassTagApplyMethod) => {
153
val claz = tptr.tpe.classSymbol
154
if (ValueClasses.isDerivedValueClass (claz) )
155
- ref(claz.companionModule) else tree
+ //TODO: add ensureConforms to fix -Ycheck:all for array of instances of case class X[T](val x: T) extends AnyVal
156
+ ref(claz.companionModule).ensureConforms(tree.tpe) else tree
157
}
158
case _ => tree
159
0 commit comments