Skip to content

Commit 44719c8

Browse files
committed
[v6.d REVIEW] Fix erroneous | causing explosions
Orig: a41c9f5 Explosions found after fixing precedence errors in 1f38f4acdb
1 parent 1f38f4a commit 44719c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S03-operators/buf.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ throws-like { Buf.new().subbuf(0, -1) }, X::OutOfRange,
162162
"Buf last element correct after {$what}ing varargs";
163163

164164
cmp-ok $a, '===', $what eq 'push'
165-
?? $a.push(|93 xx 1) !! $a.append(93 xx 1), "$what returns self";
165+
?? $a.push(|(93 xx 1)) !! $a.append(93 xx 1), "$what returns self";
166166

167167
is $a.elems, 9, "Buf .elems correct after {$what}ing xx list";
168168
is-deeply $a[8], 93,
@@ -195,7 +195,7 @@ throws-like { Buf.new().subbuf(0, -1) }, X::OutOfRange,
195195
"Buf second element correct after {$what}ing varargs";
196196

197197
cmp-ok $a, '===', $what eq 'unshift'
198-
?? $a.unshift(|9 xx 1) !! $a.prepend(9 xx 1), "$what returns self";
198+
?? $a.unshift(|(9 xx 1)) !! $a.prepend(9 xx 1), "$what returns self";
199199

200200
is $a.elems, 9, "Buf .elems correct after {$what}ing xx list";
201201
is-deeply $a[0], 9,

0 commit comments

Comments
 (0)