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 60be656 commit cea9894Copy full SHA for cea9894
compiler/src/dotty/tools/dotc/core/TyperState.scala
@@ -95,12 +95,14 @@ class TyperState(previous: TyperState /* | Null */) extends DotClass with Showab
95
val savedCommittable = myIsCommittable
96
val savedCommitted = isCommitted
97
myIsCommittable = false
98
- myReporter =
99
- if (testReporter == null) new StoreReporter(reporter)
100
- else {
+ myReporter = {
+ if (testReporter == null) {
+ testReporter = new StoreReporter(reporter)
101
+ } else {
102
testReporter.reset()
- testReporter
103
}
104
+ testReporter
105
+ }
106
try op
107
finally {
108
myReporter = savedReporter
0 commit comments