We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#126113 (status was 'open')
Searchable as RT126113$
The text was updated successfully, but these errors were encountered:
t/spec/S02-names/pseudo.t expects that you can do:
use Test; plan 1; sub f3() { } &::("CORE")::none := &f3; ok &none =:= &f3, 'works';
Sorry, something went wrong.
On 09/20/2015 09:55 AM, Tobias Leich (via RT) wrote:
# New Ticket Created by Tobias Leich # Please include the string: [perl #126113] # in the subject line of all future correspondence about this issue. # <URL: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126113 > t/spec/S02-names/pseudo.t expects that you can do: use Test; plan 1; sub f3\(\) \{ \} &​::\("CORE"\)​::none := &f3; ok &none =​:= &f3, 'works';
# New Ticket Created by Tobias Leich # Please include the string: [perl #126113] # in the subject line of all future correspondence about this issue. # <URL: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126113 >
use Test; plan 1; sub f3\(\) \{ \} &​::\("CORE"\)​::none := &f3; ok &none =​:= &f3, 'works';
I'm pretty sure that test is incorrect.
Lexical scopes are read-only after compile time, and &::CORE is a lexical scope, after all.
The RT System itself - Status changed from 'new' to 'open'
Yeah, the test (as well as the surrounding ones that do pass) seems fishy.
I also don't see the tested behavior described in S02. The only example code in S02 that shows binding to a `&` LHS is this:
my &func := sub { say "Hi" };
...which declares a new symbol in the current scope, rather than modifying an already closed scope.
(I'll abuse the `testneeded` tag again, to mean "Needs someone experienced with Roast to investigate and potentially fix/remove test.")
No branches or pull requests
Migrated from rt.perl.org#126113 (status was 'open')
Searchable as RT126113$
The text was updated successfully, but these errors were encountered: