Skip to content

Commit 79699f2

Browse files
Count symbol redefinition on late compilation as symbol loading
For the purposes of the capability of flag mutation on completion.
1 parent 220fd79 commit 79699f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,11 @@ class Namer { typer: Typer =>
331331

332332
val sym =
333333
if (prev.exists) {
334+
prev.startedLoading()
334335
prev.flags = flags1
335336
prev.info = infoFn(prev.asInstanceOf[S])
336337
prev.setPrivateWithin(privateWithin)
338+
prev.finishedLoading()
337339
prev
338340
}
339341
else symFn(flags1, infoFn, privateWithin)

0 commit comments

Comments
 (0)