File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1613,7 +1613,7 @@ object SymDenotations {
16131613 c.ensureCompleted()
16141614 end completeChildrenIn
16151615
1616- if is(Sealed ) then
1616+ if is(Sealed ) || isAllOf( JavaEnumTrait ) then
16171617 if ! is(ChildrenQueried ) then
16181618 // Make sure all visible children are completed, so that
16191619 // they show up in Child annotations. A possible child is visible if it
Original file line number Diff line number Diff line change 1- package dotty .tools .dotc
1+ package dotty .tools
2+ package dotc
23package transform
34package patmat
45
Original file line number Diff line number Diff line change 1+ // scalac: -Werror
2+ enum Foo :
3+ case One (value : String )
4+ case Two (value : Long , month : java.time.Month )
5+
6+ object Issue :
7+ def doSomething (foo : Foo ): String = foo match
8+ case Foo .One (x) => s " 1 $x"
9+ case Foo .Two (x, y) => s " 2 $x $y"
You can’t perform that action at this time.
0 commit comments