Skip to content
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

Multi-value hash doesn't consider * as a Range #6419

Closed
p6rt opened this issue Aug 1, 2017 · 5 comments
Closed

Multi-value hash doesn't consider * as a Range #6419

p6rt opened this issue Aug 1, 2017 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 1, 2017

Migrated from rt.perl.org#131827 (status was 'resolved')

Searchable as RT131827$

@p6rt
Copy link
Author

p6rt commented Aug 1, 2017

From alexander.kiryuhin@gmail.com

my %h = :a($("1", "3", "4"));
say %h<a>[*];
P6opaque​: no such attribute '$!todo' in type List when trying to get a
value
in block <unit> at <unknown file> line 1

The bug appeared after this commit, I guess​: https://github.com/rakudo/
rakudo/commit/a256c26d850c0e5ff986a6dfa1b1ef1ffaf55f40#diff-
73b320f44150e274a14987ce4e9f0fdaR220

The test will be something like​:

is-deeply :a($("1", "3", "4"))<a>[*], ('1', '3', '4'), '* is considered as
a Range';

I can commit the test for sure, but I need to know where should I add it.

--
--
Alexander.

@p6rt
Copy link
Author

p6rt commented Aug 1, 2017

From @lizmat

On 1 Aug 2017, at 14​:40, Ð�лекÑ�андÑ� Ð�иÑ�Ñ�Ñ�ин (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by �лек�анд� �и���ин
# Please include the string​: [perl #​131827]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131827 >

my %h = :a($("1", "3", "4"));
say %h<a>[*];
P6opaque​: no such attribute '$!todo' in type List when trying to get a
value
in block <unit> at <unknown file> line 1

Fixed with rakudo/rakudo@59ba9c025e

The bug appeared after this commit, I guess​: https://github.com/rakudo/
rakudo/commit/a256c26d850c0e5ff986a6dfa1b1ef1ffaf55f40#diff-
73b320f44150e274a14987ce4e9f0fdaR220

The test will be something like​:

is-deeply :a($("1", "3", "4"))<a>[*], ('1', '3', '4'), '* is considered as
a Range';

I can commit the test for sure, but I need to know where should I add it.

t/spec/S09-subscript/slice.t seems a good place, judging by the name.

@p6rt
Copy link
Author

p6rt commented Aug 1, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 2, 2017

From @zoffixznet

Tests added​: Raku/roast@6da5196

@p6rt p6rt closed this as completed Aug 2, 2017
@p6rt
Copy link
Author

p6rt commented Aug 2, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant