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 88cfb7e commit bb1515eCopy full SHA for bb1515e
compiler/src/dotty/tools/dotc/transform/SymUtils.scala
@@ -145,8 +145,11 @@ class SymUtils(val self: Symbol) extends AnyVal {
145
}.reverse
146
}
147
148
- def hasAnonymousChild(implicit ctx: Context): Boolean =
+ def hasAnonymousChild(implicit ctx: Context): Boolean = {
149
+ if (self.isType)
150
+ self.setFlag(ChildrenQueried)
151
children.exists(_ `eq` self)
152
+ }
153
154
/** Is symbol directly or indirectly owned by a term symbol? */
155
@tailrec final def isLocal(implicit ctx: Context): Boolean = {
0 commit comments