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
Using wrong number of arguments in a start { ... } block in a map block doesn't always raise the correct exception #3734
Comments
From @hoelzroThe example program (attached) invokes &worker with an incorrect number of parameters, but sometimes (19/100) the program locks up, and other times (52/100) throws the wrong exception (Type check failed in binding exception; expected 'Any' but got 'Mu'). 29/100 times, the correct exception (Unhandled exception: Too few positionals passed; expected 2 arguments but got 1) is thrown. I'm testing this on the JVM right now, but as can be expected, it's taking a lot longer. |
From @hoelzrouse v6; sub worker(Any $a, Int $b) {} my $value = Any; my @workers = (^2).map: { await @workers; |
From @hoelzroThis does *not* occur on the JVM. |
From @hoelzroOn 2015-03-15 18:05:24, rob@hoelz.ro wrote:
This appears to be fixed! |
@hoelzro - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#124073 (status was 'resolved')
Searchable as RT124073$
The text was updated successfully, but these errors were encountered: