You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To offer some clarity on this bug report, this is the code being skipped in the file (with a 'say' added for this :
<ShimmerFairy> m: say join |« <a x y z>
<camelia> rakudo-moar 5ba44f: OUTPUT«Type check failed in binding op; expected 'Any' but got 'Mu' in block <unit> at /tmp/5bam4cfq0k:1»
On GLR:
<ShimmerFairy> m: say join |« <a x y z>
<GLRelia> rakudo-moar 36ea47: OUTPUT«»
The expected output is "xayaz" (that is, <x y z>.join("a") )
The unary | operator casts its argument to a Capture object, then splices that capture into the argument list it occurs in. To get the same effect on multiple arguments you can use the |« hyperoperator.
But in the example from the test there aren't multiple arguments, there's just one list.
Migrated from rt.perl.org#124558 (status was 'open')
Searchable as RT124558$
The text was updated successfully, but these errors were encountered: