Skip to content

Commit c10683a

Browse files
committed
add show diagnostics level in REPL warn | err
1 parent 947f8a4 commit c10683a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/repl/Rendering.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None) {
3333

3434
/** A `MessageRenderer` for the REPL without file positions */
3535
private val messageRenderer = new MessageRendering {
36-
override def posStr(pos: SourcePosition, diagnosticLevel: String, message: Message)(using Context): String = ""
36+
override def posStr(pos: SourcePosition, diagnosticLevel: String, message: Message)(using Context): String = s"-- $diagnosticLevel: "
3737
}
3838

3939
private var myClassLoader: ClassLoader = _

0 commit comments

Comments
 (0)