Skip to content

Commit

Permalink
Fix -Ydebug-tree-with-id
Browse files Browse the repository at this point in the history
Simplify -Ydebug-tree-with-id logic.
Currently it doesn't work for unknown reason
so this simplified logic should be more reliable.
  • Loading branch information
anatoliykmetyuk committed Jul 1, 2021
1 parent 79fae19 commit 9bc36e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/Positioned.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Src
ids.put(this, ownId)
if ownId == debugId then
println(s"Debug tree (id=$debugId) creation \n$this\n")
Reporter.displayPrompt(Console.in, new PrintWriter(Console.err, true))
Thread.dumpStack()

allocateId()

Expand Down

0 comments on commit 9bc36e3

Please sign in to comment.