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 86acb56 commit 18c2061Copy full SHA for 18c2061
compiler/src/dotty/tools/dotc/reporting/Reporter.scala
@@ -252,7 +252,7 @@ abstract class Reporter extends interfaces.ReporterResult {
252
253
/** Run `op` and return `true` if errors were reported by this reporter.
254
*/
255
- def reportsErrorsFor(op: given Context => Unit) given Context : Boolean = {
+ def reportsErrorsFor(op: given Context => Any) given Context : Boolean = {
256
val initial = errorCount
257
op
258
errorCount > initial
0 commit comments