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 de7b370 + cea9894 commit 4aa13b0Copy full SHA for 4aa13b0
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