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
Can't .gist/.Str/.perl Distribution::Resource:U #2143
Comments
This commit fixes RT rakudo#2143. Besides just making `say Distribution::Resource.^mro` not error, `.WHAT`, `.gist,`, `.perl`, and `.say` now also work on the type object. Credit to zoffixznet for figuring out how to solve the problem, as I just followed their instructions. See this irc log for more context, http://colabti.org/irclogger/irclogger_log/perl6?date=2018-07-29#l84
Fix RT #2143. Make Distribution::Resource.^mro not error.
Where would an appropriate place to write the tests be? Searching for either "Distribution" or "%?RESOURCES" on Perl6/Roast doesn't seem to give any hints for tests should be placed. UPDATE: I am placed my tests in MISC/bug-coverage.t for now. Also, note that even with the pull request, |
It doesn't error. That's a stringification warning that usually is displayed when you stringify classes ain't meant to be stringified. |
See Newcomer Guide to Contributing to Core Perl 6 for tips on fixing this Issue
Fix would simply involve changing the methods to
multi
and type-constraining them on:D
invocant. e.g.:The text was updated successfully, but these errors were encountered: