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
.sort called with space before the method operator returns a BOOTArray rather than List #4855
Comments
From @smlsThis causes 'for' loops and methods calls on it, to fail: ➜ .say for <2 1 3> .sort ➜ say (<2 1 3> .sort).elems ➜ say (<2 1 3> .sort).^methods.perl ➜ say (<2 1 3> .sort).WHAT ➜ say (<2 1 3> .sort).^name Funnily enough, &say and .[] can still handle it: ➜ say (<2 1 3> .sort) ➜ say (<2 1 3> .sort)[0] On the other hand when the postfix form of the method call operator is used (i.e. no space before the .sort), the problem does not appear: ➜ .say for <2 1 3>.sort ➜ say (<2 1 3>.sort).WHAT |
From @lizmatFixed with 15ee3c3b9d94855aa , tests needed
|
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetTests added in Raku/roast@94d5bc99c3 -- |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126921 (status was 'resolved')
Searchable as RT126921$
The text was updated successfully, but these errors were encountered: