Skip to content

Commit 0bb3107

Browse files
Update compiler/src/dotty/tools/dotc/ast/Positioned.scala
Co-authored-by: Nicolas Stucki <[email protected]>
1 parent a79d848 commit 0bb3107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Positioned.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ object Positioned {
245245

246246
def init(using Context): Unit =
247247
debugId = ctx.settings.YdebugTreeWithId.value
248-
if ctx.settings.YshowTreeIds.value
248+
if ids == null && ctx.settings.YshowTreeIds.value
249249
|| debugId != ctx.settings.YdebugTreeWithId.default
250250
then
251251
ids = java.util.WeakHashMap()

0 commit comments

Comments
 (0)