Skip to content

Commit a27d6dc

Browse files
committed
Fix another test broken by immutable tuples going away.
() made an immutable tuple pre-GLR if all the bits are immutable. Though List itself is immutable, its elements don't have to be, so two captures can no longer be the same object if they are constructed separately. We have to use eqv instead of === now.
1 parent b265042 commit a27d6dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S02-types/capture.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ plan 29;
8787
my $capture2 = \(1,2,3);
8888
try { foo8 $capture2 }; # note: no |$args here
8989

90-
ok $capture1 === $capture2,
90+
ok $capture1 eqv $capture2,
9191
"unflattened captures can be passed to subs";
9292
}
9393

0 commit comments

Comments
 (0)