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
Can't set rx{} as parameter default #4428
Comments
From @japhbIt appears you can't use an rx{} literal as a parameter default: $ perl6 -e 'sub foo($r) { say $r }; foo(rx{bar});' This is golfed down from a bug causing flussence's Text-Tabs-Wrap Interestingly there appears to be a funky workaround: $ perl6 -e 'sub foo($r = {rx{foo}}()) { say $r }; foo(rx{bar}); foo();' |
From @jnthnOn Thu Jul 23 19:11:18 2015, gjb@google.com wrote:
Turned out to be a funky "static analysis gone wild" bug. Fixed, added test in S06-signature/defaults.t. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125670 (status was 'resolved')
Searchable as RT125670$
The text was updated successfully, but these errors were encountered: