diff options
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r-- | src/dotty/tools/dotc/Compiler.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala index f6723ddf4..38e3c8fd8 100644 --- a/src/dotty/tools/dotc/Compiler.scala +++ b/src/dotty/tools/dotc/Compiler.scala @@ -30,6 +30,8 @@ class Compiler { (start.withRunInfo(new RunInfo(start)) /: defn.RootImports)(addImport) } - def newRun(implicit ctx: Context): Run = - new Run(this)(rootContext) + def newRun(implicit ctx: Context): Run = { + try new Run(this)(rootContext) + finally ctx.base.reset() + } }
\ No newline at end of file |