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 72a8584 commit 0258d42Copy full SHA for 0258d42
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -723,10 +723,7 @@ object desugar {
723
else if (companionMembers.nonEmpty || companionDerived.nonEmpty || isEnum)
724
companionDefs(anyRef, companionMembers)
725
else if (isValueClass)
726
- impl.constr.vparamss match {
727
- case (_ :: Nil) :: _ => companionDefs(anyRef, Nil)
728
- case _ => Nil // error will be emitted in typer
729
- }
+ companionDefs(anyRef, Nil)
730
else Nil
731
732
enumCompanionRef match {
tests/neg/i7819.scala
@@ -0,0 +1 @@
1
+class Foo(val y: Any)(x: Any) extends AnyVal
0 commit comments