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 d474afa commit a340323Copy full SHA for a340323
compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala
@@ -181,8 +181,10 @@ class InteractiveDriver(settings: List[String]) extends Driver {
181
182
private def cleanup(tree: tpd.Tree)(implicit ctx: Context): Unit = tree.foreachSubTree { t =>
183
if (t.hasType) {
184
- if (t.symbol.exists && !t.symbol.isCompleted)
185
- t.symbol.info = UnspecifiedErrorType
+ if (t.symbol.exists) {
+ if (!t.symbol.isCompleted) t.symbol.info = UnspecifiedErrorType
186
+ t.symbol.annotations.foreach(annot => cleanup(annot.tree))
187
+ }
188
}
189
t.removeAllAttachments()
190
0 commit comments