File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
184184 case _ =>
185185 }
186186 case ExprType (result) =>
187- return " => " ~ toText(result)
187+ return ( if ( YprintRepl ) " : " else " => " ) ~ toText(result)
188188 case ErasedValueType (tycon, underlying) =>
189189 return " ErasedValueType(" ~ toText(tycon) ~ " , " ~ toText(underlying) ~ " )"
190190 case tp : ClassInfo =>
Original file line number Diff line number Diff line change @@ -12,8 +12,4 @@ class UserFacingPrinter(_ctx: Context) extends RefinedPrinter(_ctx) {
1212 if (sym.name.isReplAssignName) nameString(sym.name)
1313 else keyString(sym) ~~ nameString(sym.name.stripModuleClassSuffix)
1414
15- override def toText (tp : Type ): Text = tp match {
16- case ExprType (result) => " :" ~~ toText(result)
17- case tp => super .toText(tp)
18- }
1915}
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ object DiffUtil {
111111 }.mkString
112112 }
113113
114- private def added (str : String ): String = bgColored(str, Console .GREEN )
115- private def deleted (str : String ) = bgColored(str, Console .RED )
114+ private def added (str : String ): String = bgColored(str, Console .GREEN_B )
115+ private def deleted (str : String ) = bgColored(str, Console .RED_B )
116116 private def bgColored (str : String , color : String ): String = {
117117 if (str.isEmpty) " "
118118 else {
You can’t perform that action at this time.
0 commit comments