Skip to content

Commit 3512840

Browse files
committed
Merge pull request #707 from dotty-staging/fix-println
Fix println
2 parents 11b7963 + 4de4403 commit 3512840

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/dotty/tools/dotc/reporting/Reporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ trait Reporting { this: Context =>
182182
abstract class Reporter {
183183

184184
/** Report a diagnostic */
185-
protected def doReport(d: Diagnostic)(implicit ctx: Context): Unit
185+
def doReport(d: Diagnostic)(implicit ctx: Context): Unit
186186

187187
/** Whether very long lines can be truncated. This exists so important
188188
* debugging information (like printing the classpath) is not rendered

src/dotty/tools/dotc/reporting/StoreReporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class StoreReporter extends Reporter {
1414

1515
private var infos: mutable.ListBuffer[Diagnostic] = null
1616

17-
protected def doReport(d: Diagnostic)(implicit ctx: Context): Unit = {
17+
def doReport(d: Diagnostic)(implicit ctx: Context): Unit = {
1818
typr.println(s">>>> StoredError: ${d.msg}") // !!! DEBUG
1919
if (infos == null) infos = new mutable.ListBuffer
2020
infos += d

src/dotty/tools/dotc/reporting/ThrowingReporter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Reporter._
1111
* info to the underlying reporter.
1212
*/
1313
class ThrowingReporter(reportInfo: Reporter) extends Reporter {
14-
protected def doReport(d: Diagnostic)(implicit ctx: Context): Unit = d match {
14+
def doReport(d: Diagnostic)(implicit ctx: Context): Unit = d match {
1515
case _: Error => throw d
16-
case _ => reportInfo.report(d)
16+
case _ => reportInfo.doReport(d)
1717
}
1818
}

0 commit comments

Comments
 (0)