File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
compiler/test-resources/repl Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ scala> res15.toString
68
68
val res16: String = NFloat@3f800000
69
69
70
70
scala> 1.0F
71
- val res17: Float = 1.0
71
+ val res17: Float = 1.0F
72
72
73
73
scala> class NDouble(val x: Double) extends AnyVal
74
74
// defined class NDouble
@@ -92,7 +92,7 @@ scala> res21.toString
92
92
val res22: String = NChar@61
93
93
94
94
scala> 'a'
95
- val res23: Char = a
95
+ val res23: Char = 'a'
96
96
97
97
scala> class NString(val x: String) extends AnyVal
98
98
// defined class NString
@@ -104,7 +104,7 @@ scala> res24.toString
104
104
val res25: String = NString@364492
105
105
106
106
scala> "test"
107
- val res26: String = test
107
+ val res26: String = " test"
108
108
109
109
scala> class CustomToString(val x: Int) extends AnyVal { override def toString(): String = s"Test$x" }
110
110
// defined class CustomToString
Original file line number Diff line number Diff line change @@ -755,7 +755,8 @@ object Build {
755
755
.replace(" if (head != null && head.hasNext) true" , " if (head != null && head.nn.hasNext) true" )
756
756
.replace(" head.next()" , " head.nn.next()" )
757
757
.replace(" abstract class Walker" , " @scala.annotation.nowarn abstract class Walker" )
758
- .replace(" object TPrintLowPri" , " @scala.annotation.nowarn object TPrintLowPri" )).getBytes
758
+ .replace(" object TPrintLowPri" , " @scala.annotation.nowarn object TPrintLowPri" )
759
+ .replace(" x.toString match{" , " scala.runtime.ScalaRunTime.stringOf(x) match{" )).getBytes
759
760
)
760
761
file.toFile
761
762
You can’t perform that action at this time.
0 commit comments