Skip to content

Commit 8827eff

Browse files
Revert "Flag ChildrenQueried in hasAnonymousChild"
This reverts commit bb1515e.
1 parent 1df0d8b commit 8827eff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/src/dotty/tools/dotc/transform/SymUtils.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,8 @@ class SymUtils(val self: Symbol) extends AnyVal {
145145
}.reverse
146146
}
147147

148-
def hasAnonymousChild(implicit ctx: Context): Boolean = {
149-
if (self.isType)
150-
self.setFlag(ChildrenQueried)
148+
def hasAnonymousChild(implicit ctx: Context): Boolean =
151149
children.exists(_ `eq` self)
152-
}
153150

154151
/** Is symbol directly or indirectly owned by a term symbol? */
155152
@tailrec final def isLocal(implicit ctx: Context): Boolean = {

0 commit comments

Comments
 (0)