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
array binding causes failures to be thrown #3161
Comments
From @labsterlabster: r: sub foo { X::IO::Dir.new(path=>'a', os-error=>'b').fail }; my Unless someone tells me this is not a bug -- but it seems like this would |
From @usev6AFAIU this looks fine now: $ perl6 -e 'sub foo { X::IO::Dir.new(path=>"a", os-error=>"b").fail }; my @a := foo(); 1' The Failure X::IO::Dir is no longer thrown, but the code dies because @a cannot be bound to a non Positional. If I add a second element on the rhs of the binding, the code runs fine: $ ./perl6 -e 'sub foo { X::IO::Dir.new(path=>"a", os-error=>"b").fail }; my @a := foo(), 42; say @a.perl' I'd vote for 'closable with tests'. |
1 similar comment
From @usev6AFAIU this looks fine now: $ perl6 -e 'sub foo { X::IO::Dir.new(path=>"a", os-error=>"b").fail }; my @a := foo(); 1' The Failure X::IO::Dir is no longer thrown, but the code dies because @a cannot be bound to a non Positional. If I add a second element on the rhs of the binding, the code runs fine: $ ./perl6 -e 'sub foo { X::IO::Dir.new(path=>"a", os-error=>"b").fail }; my @a := foo(), 42; say @a.perl' I'd vote for 'closable with tests'. |
@usev6 - Status changed from 'new' to 'open' |
From @zoffixznet |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#118397 (status was 'resolved')
Searchable as RT118397$
The text was updated successfully, but these errors were encountered: