Skip to content

Commit 6748da0

Browse files
committed
.
1 parent 1fbb3a5 commit 6748da0

File tree

4 files changed

+139
-9
lines changed

4 files changed

+139
-9
lines changed

repl/test-resources/repl/i1374

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,40 @@ scala> implicit class Padder(val sb: StringBuilder) extends AnyVal { infix def p
22
// defined class Padder
33
def Padder(sb: StringBuilder): Padder
44
scala> val greeting = new StringBuilder("Hello, kitteh!")
5-
val greeting: StringBuilder = Hello, kitteh!
5+
val greeting: StringBuilder = IndexedSeq(
6+
'H',
7+
'e',
8+
'l',
9+
'l',
10+
'o',
11+
',',
12+
' ',
13+
'k',
14+
'i',
15+
't',
16+
't',
17+
'e',
18+
'h',
19+
'!'
20+
)
21+
622
scala> val a = greeting pad2 20
7-
val a: StringBuilder = Hello, kitteh!*
23+
val a: StringBuilder = IndexedSeq(
24+
'H',
25+
'e',
26+
'l',
27+
'l',
28+
'o',
29+
',',
30+
' ',
31+
'k',
32+
'i',
33+
't',
34+
't',
35+
'e',
36+
'h',
37+
'!',
38+
'*'
39+
)
840
scala> val farewell = new StringBuilder("U go now.") // I hatez long bye-bye.
9-
val farewell: StringBuilder = U go now.
41+
val farewell: StringBuilder = IndexedSeq('U', ' ', 'g', 'o', ' ', 'n', 'o', 'w', '.')

repl/test-resources/repl/i4852

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
scala> inline def foo[T](t : T*) : Any = t
22
def foo[T](t: T*): Any
33
scala> foo(1, "hi", false)
4-
val res0: Any = ArraySeq(1, hi, false)
4+
val res0: Any = ArraySeq(1, "hi", false)
55
scala> foo()
66
val res1: Any = ArraySeq()

repl/test-resources/repl/i5218

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
scala> val tuple = (1, "2", 3L)
2-
val tuple: (Int, String, Long) = (1,2,3)
2+
val tuple: (Int, String, Long) = (1, "2", 3L)
33
scala> 0.0 *: tuple
4-
val res0: (Double, Int, String, Long) = (0.0,1,2,3)
4+
val res0: (Double, Int, String, Long) = (0.0, 1, "2", 3L)
55
scala> tuple ++ tuple
6-
val res1: Int *: String *: Long *: tuple.type = (1,2,3,1,2,3)
6+
val res1: Int *: String *: Long *: tuple.type = (1, "2", 3L, 1, "2", 3L)
Lines changed: 100 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,106 @@
11
scala> 1.to(200).toList
2-
val res0: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200)
2+
val res0: List[Int] = List(
3+
1,
4+
2,
5+
3,
6+
4,
7+
5,
8+
6,
9+
7,
10+
8,
11+
9,
12+
10,
13+
11,
14+
12,
15+
13,
16+
14,
17+
15,
18+
16,
19+
17,
20+
18,
21+
19,
22+
20,
23+
21,
24+
22,
25+
23,
26+
24,
27+
25,
28+
26,
29+
27,
30+
28,
31+
29,
32+
30,
33+
31,
34+
32,
35+
33,
36+
34,
37+
35,
38+
36,
39+
37,
40+
38,
41+
39,
42+
40,
43+
41,
44+
42,
45+
43,
46+
44,
47+
45,
48+
46,
49+
47,
50+
48,
51+
...
352

453
scala>:settings -Vrepl-max-print-elements:20
554

655
scala> 1.to(300).toList
7-
val res1: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300)
56+
val res1: List[Int] = List(
57+
1,
58+
2,
59+
3,
60+
4,
61+
5,
62+
6,
63+
7,
64+
8,
65+
9,
66+
10,
67+
11,
68+
12,
69+
13,
70+
14,
71+
15,
72+
16,
73+
17,
74+
18,
75+
19,
76+
20,
77+
21,
78+
22,
79+
23,
80+
24,
81+
25,
82+
26,
83+
27,
84+
28,
85+
29,
86+
30,
87+
31,
88+
32,
89+
33,
90+
34,
91+
35,
92+
36,
93+
37,
94+
38,
95+
39,
96+
40,
97+
41,
98+
42,
99+
43,
100+
44,
101+
45,
102+
46,
103+
47,
104+
48,
105+
...
8106

0 commit comments

Comments
 (0)