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
List.Set loses Pair elements #6147
Comments
From zefram@fysh.orgCoercing from List to Set, where the List contains a Pair element:
I'd expect the coercion to yield a Set that contains a Pair element. -zefram |
From @smlsNot a bug, and explained in the docs: https://docs.perl6.org/type/Set#Creating_Set_objects Use set() or Set.new() to get the behavior you want. |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgSam S. via RT wrote:
Fair enough. For the record, I didn't think to look at that bit of the -zefram |
From @AlexDanielThere are some tests for it here: https://github.com/perl6/roast/blob/master/S02-types/set.t#L62-L72 However, Bools are not tested. Not sure if it is a reasonable assumption that bools will be covered by these tests, so I'd say we add to extra tests before closing this just in case. Zefram, can you open a corresponding doc issue for the problem? On 2017-03-12 04:20:30, zefram@fysh.org wrote:
|
From @zoffixznetTests added: Raku/roast@1e20619853 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#130976 (status was 'resolved')
Searchable as RT130976$
The text was updated successfully, but these errors were encountered: