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
Losing type info in the bowels of MapIter #3245
Comments
From @lizmatA deleted entry in an array, returns it type object correctly when directly invoked, but a generic Any object when invoked through map. At least on parakudo, not sure about jakudo. [14:23:32] <lizmat> r: my Int @a=^3; @a[1]:delete; @a.map:{say .WHAT.perl }; @a[1].WHAT.perl.say # losing type info deep in the bowels of MapIter [21:40:20] <lizmat_> r: my Int @a=^3; @a[1]:delete; @a.map:{say .WHAT.perl }; @a[1].WHAT.perl.say # losing type info deep in the bowels of MapIter [12:06:07] <lizmat> Could someone run this on jakudo and tell me what it says? my Int @a=^3; @a[1]:delete; @a.map:{ .WHAT.perl.say }; @a[1].WHAT.perl.say |
From @usev6The type info for deleted elements is not lost anymore: $ perl6-m -e 'my Int @a=^3; @a[1]:delete; @a.map:{say .WHAT.perl }; @a[1].WHAT.perl.say' I added a test to S09-typed-arrays/arrays.t with commit Raku/roast@4ec7087158 I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6The type info for deleted elements is not lost anymore: $ perl6-m -e 'my Int @a=^3; @a[1]:delete; @a.map:{say .WHAT.perl }; @a[1].WHAT.perl.say' I added a test to S09-typed-arrays/arrays.t with commit Raku/roast@4ec7087158 I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#120071 (status was 'resolved')
Searchable as RT120071$
The text was updated successfully, but these errors were encountered: