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.
2 parents cf7b589 + fded6f1 commit 8bfcdaaCopy full SHA for 8bfcdaa
compiler/src/dotty/tools/dotc/quoted/Toolbox.scala
@@ -19,10 +19,10 @@ object Toolbox {
19
case expr: TastyTreeExpr[Tree] @unchecked =>
20
throw new Exception("Cannot call `Expr.run` on an `Expr` that comes from an inline macro argument.")
21
case _ =>
22
- driver.run(expr, settings)
+ synchronized(driver.run(expr, settings))
23
}
24
25
- def show[T](expr: Expr[T]): String = driver.show(expr, settings)
+ def show[T](expr: Expr[T]): String = synchronized(driver.show(expr, settings))
26
27
28
0 commit comments