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 88cec9f commit 4cccf41Copy full SHA for 4cccf41
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -682,7 +682,7 @@ object desugar {
682
}
683
companionDefs(companionParent, applyMeths ::: unapplyMeth :: companionMembers)
684
685
- else if (companionMembers.nonEmpty || companionDerived.nonEmpty || isEnum || mods.is(Sealed))
+ else if (companionMembers.nonEmpty || companionDerived.nonEmpty || isEnum)
686
companionDefs(anyRef, companionMembers)
687
else if (isValueClass) {
688
impl.constr.vparamss match {
tests/run/ordinal-innerclass.scala
@@ -33,6 +33,6 @@ object Test extends App {
33
34
35
36
- sealed trait T1
+ trait T1
37
case class A1() extends T1
38
0 commit comments