File tree 2 files changed +5
-3
lines changed
compiler/src/dotty/tools/dotc/transform
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ class SymUtils(val self: Symbol) extends AnyVal {
192
192
def children (implicit ctx : Context ): List [Symbol ] = {
193
193
if (self.isType)
194
194
self.setFlag(ChildrenQueried )
195
+
196
+ if (self.isAllOf(JavaEnumTrait ))
197
+ self.linkedClass.info.decls.foreach(_.ensureCompleted())
198
+
195
199
self.annotations.collect {
196
200
case Annotation .Child (child) => child
197
201
}.reverse
Original file line number Diff line number Diff line change @@ -603,9 +603,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
603
603
case tp if tp.isRef(defn.UnitClass ) =>
604
604
Typ (ConstantType (Constant (())), true ) :: Nil
605
605
case tp if tp.classSymbol.isAllOf(JavaEnumTrait ) =>
606
- tp.classSymbol.linkedClass.info.decls.toList.map(_.ensureCompleted())
607
- val children = tp.classSymbol.children
608
- children.map(sym => Typ (sym.termRef, true ))
606
+ tp.classSymbol.children.map(sym => Typ (sym.termRef, true ))
609
607
case tp =>
610
608
val children = tp.classSymbol.children
611
609
debug.println(s " candidates for ${tp.show} : [ ${children.map(_.show).mkString(" , " )}] " )
You can’t perform that action at this time.
0 commit comments