Skip to content

Commit 5de93b8

Browse files
authored
Merge pull request #10616 from som-snytt/issue/10615
Do not re-highlight result of typeOf
2 parents 4fa7c6b + d68a0ab commit 5de93b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class ReplDriver(settings: Array[String],
382382
case _ =>
383383
compiler.typeOf(expr)(newRun(state)).fold(
384384
displayErrors,
385-
res => out.println(SyntaxHighlighting.highlight(res)(using state.context))
385+
res => out.println(res) // result has some highlights
386386
)
387387
}
388388
state

0 commit comments

Comments
 (0)