New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For loops and junctions misbehave in Rakudo #745
Comments
From @moritzThis works: 17:58 <@moritz_> rakudo: my %h = ( a => any(3, 4) ); say %h<a>.WHAT; This doesn't: (I think it's correct that it autothreads over $k because it's not Cheers, |
From @masak<masak> rakudo: for any(1,2) -> $x {} I see two bugs above. First, the cryptic equivalent of Perl 5's "Can't |
From @jnthnOn Sat Mar 07 09:04:51 2009, moritz wrote:
Ah yes, I'd forgotten that we can bind sigs on a block that ain't a Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-junctions/misc.t commit dcde0ac24640877f0b8ff37a22ffef553283bbad [t/spec] (perhaps incomplete) test for RT #63686 Inline Patchdiff --git a/t/spec/S03-junctions/misc.t b/t/spec/S03-junctions/misc.t
index 1b9515f..d02666f 100644
--- a/t/spec/S03-junctions/misc.t
+++ b/t/spec/S03-junctions/misc.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 95;
+plan 97;
=begin pod
@@ -408,6 +408,14 @@ sub junction_diff(Object $this, Object $that) {
is_deeply(junction_diff(1|2, 1|2|3), ["3 is missing from this"], 'Value is missing from left side');
}
+# RT #63686
+{
+ lives_ok { try { for any(1,2) -> $x {}; } },
+ 'for loop over junction in try block';
-
-
+ sub rt63686 {
+ for any(1,2) -> $x {};
+ return 'happiness';
+ }
+ is rt63686(), 'happiness', 'for loop over junction in sub';
+} |
From @moritzAs per current spec rakudo sets the default type of block parameters to |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63686 (status was 'resolved')
Searchable as RT63686$
The text was updated successfully, but these errors were encountered: