Skip to content

Commit

Permalink
add spaces to infix display in BuiltInDiffMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
tribbloid committed Oct 5, 2023
1 parent 525b919 commit b57adf6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ trait SplainFormattingExtension extends typechecker.splain.SplainFormatting with

lazy val infixText = infixOpt match {
case None => "|"
case Some(ii) => showFormattedLImpl(ii, break).flat
case Some(ii) => " " + showFormattedLImpl(ii, break).flat + " "
}

val indented = msg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ newSource1.scala:27: error: implicit error;

add2(x.head)
^

newSource1.scala:6: error: type mismatch;
Long(in method add)|scala.Long
――(comparing <found>|<required>)
Expand All @@ -55,14 +56,24 @@ newSource1.scala:6: error: type mismatch;
newSource1.scala:16: error: implicit error;
!I ev:
Long(in method add) =:= scala.Long
――(comparing <found>=:=<required>)
――(comparing <found> =:= <required>)
found : Long(in method add)
required: scala.Long
Cannot prove that Long =:= Long.

add2(x.head)
^
newSource1.scala:27: error: implicit error;
!I ev:
Long(in method add) <:< scala.Long
――(comparing <found> <:< <required>)
found : Long(in method add)
required: scala.Long
Cannot prove that Long <:< Long.

add2(x.head)
^
newSource1.scala:27: error: implicit error;
!I ev:
Long(in method add) <:< scala.Long
――(comparing <found><:<<required>)
Expand Down

0 comments on commit b57adf6

Please sign in to comment.