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.
1 parent a340323 commit 980fcbeCopy full SHA for 980fcbe
compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala
@@ -179,6 +179,11 @@ class InteractiveDriver(settings: List[String]) extends Driver {
179
180
private val compiler: Compiler = new InteractiveCompiler
181
182
+ /** Remove attachments and error out completers. The goal is to avoid
183
+ * having a completer hanging in a typed tree which can capture the context
184
+ * of a previous run. Note that typed trees can have untyped or partially
185
+ * typed children if the source contains errors.
186
+ */
187
private def cleanup(tree: tpd.Tree)(implicit ctx: Context): Unit = tree.foreachSubTree { t =>
188
if (t.hasType) {
189
if (t.symbol.exists) {
0 commit comments