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
combining :D, a where clause and Nil results in empty type object #5477
Comments
From @gfldexsub niler{Nil}; my Int:D $i where .defined = niler(); say $i; say $i.WHAT; |
From @zoffixznetOn Sat, 23 Jul 2016 15:57:33 -0700, gfldex wrote:
Thanks for the report. It's not empty. In both cases it says "<anon>", because you've used a `where` clause, thus creating an anonymous (nameless) subset. If you prefer it to have a name, you can define a named subset instead: <Zoffix__> m: my Int $i where 42; say $i; I made a patch that makes it say "<Int-based anon subset>" instead, but in the end decided against it, [1] https://gist.github.com/zoffixznet/198403153020a20b427bb2088b118ecc Closing this as wontfix. |
The RT System itself - Status changed from 'new' to 'open' |
@zoffixznet - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#128710 (status was 'rejected')
Searchable as RT128710$
The text was updated successfully, but these errors were encountered: