Skip to content

Commit 58fd5e2

Browse files
committed
Ensure -YshowSuppressedErrors also affects UniqueMessagePositions
As a followup to the earlier bugfix.
1 parent 2040fb2 commit 58fd5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/UniqueMessagePositions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait UniqueMessagePositions extends Reporter {
1818
*/
1919
override def isHidden(m: MessageContainer)(implicit ctx: Context): Boolean =
2020
super.isHidden(m) || {
21-
m.pos.exists && {
21+
m.pos.exists && !ctx.settings.YshowSuppressedErrors.value && {
2222
var shouldHide = false
2323
for (pos <- m.pos.start to m.pos.end) {
2424
positions get (ctx.source, pos) match {

0 commit comments

Comments
 (0)