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
bad error message laceholder variable @_ may not be used here because the surrounding block takes no signature #4349
Comments
From anteusz@freemail.huHi, ===SORRY!=== Error while compiling D:\m\p6\perltidy\bug2.p6 sub dump_array { say "({join ')(',@_})\n"; Compile this and you do not sub dump_array { Marton |
From @FROGGSYes, that is a bug. Rakudo believes that an interpolated block in a string is like a "real" block in code. |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzOn Thu Jun 25 05:17:47 2015, FROGGS.de wrote:
I'd argue that Rakudo behaves correctly here, and STD.pm6 agrees too. What we observe here is the danger of implicit declarations: They stop working for non-trivial cases. Your proper formal parameters for anything more involved. Cheers, |
@moritz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#125485 (status was 'rejected')
Searchable as RT125485$
The text was updated successfully, but these errors were encountered: