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 6c4d730 commit c6c6426Copy full SHA for c6c6426
compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala
@@ -313,6 +313,10 @@ trait MessageRendering {
313
val posString = posStr(pos1, msg, diagnosticLevel(dia))
314
if posString.nonEmpty then sb.append(posString).append(EOL)
315
316
+ // Display primary error message before code snippet
317
+ sb.append(msg.message)
318
+ if !msg.message.endsWith(EOL) then sb.append(EOL)
319
+
320
// Render the unified code snippet
321
// Get syntax-highlighted content for the entire range
322
val startOffset = source.lineToOffset(minLine)
0 commit comments