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 @@ -178,7 +178,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
178
178
if (tp.symbol.isAnonymousClass && ! ctx.settings.uniqid.value)
179
179
return toText(tp.info)
180
180
case ExprType (result) =>
181
- return " => " ~ toText(result)
181
+ return ( if ( YprintRepl ) " : " else " => " ) ~ toText(result)
182
182
case ErasedValueType (tycon, underlying) =>
183
183
return " ErasedValueType(" ~ toText(tycon) ~ " , " ~ toText(underlying) ~ " )"
184
184
case tp : ClassInfo =>
Original file line number Diff line number Diff line change @@ -12,8 +12,4 @@ class UserFacingPrinter(_ctx: Context) extends RefinedPrinter(_ctx) {
12
12
if (sym.name.isReplAssignName) nameString(sym.name)
13
13
else keyString(sym) ~~ nameString(sym.name.stripModuleClassSuffix)
14
14
15
- override def toText (tp : Type ): Text = tp match {
16
- case ExprType (result) => " :" ~~ toText(result)
17
- case tp => super .toText(tp)
18
- }
19
15
}
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ object DiffUtil {
111
111
}.mkString
112
112
}
113
113
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 )
116
116
private def bgColored (str : String , color : String ): String = {
117
117
if (str.isEmpty) " "
118
118
else {
You can’t perform that action at this time.
0 commit comments