Looks like a bug to me as well.
Simpler example:
➜ class a {}; { sub a {42}; say a }
(a)
➜ class a {}; { sub a {42}; say a() }
Method 'shortname' not found for invocant of class
'Perl6::Metamodel::CoercionHOW'
in block at -e line 1(a)
This is actually a more generic problem affecting user-created
classes as well:
$ perl6 -e 'class b { }; { my &b; say b.WHAT, b().WHAT }'
(b)(b(Any))
...it is just that the native types have no idea what to do
when invoked and are noisier. The above results could be equally
surprizing for someo
This is actually a more generic problem affecting user-created
classes as well:
$ perl6 -e 'class b { }; { my &b; say b.WHAT, b().WHAT }'
(b)(b(Any))
...it is just that the native types have no idea what to do
when invoked and are noisier. The above results could be equally
surprizing for someo
# New Ticket Created by Ricardo SIGNES
# Please include the string: [perl #124442]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=124442 >
This confused the heck out of me:
~/code/hub/rakudo$ ./perl6 -e 'sub byte ($i) { $i