On Sat, 03 Jun 2017 07:52:09 -0700, mt1...@gmail.com wrote: > this bug can be closed
OK. Closing. On Sat, 03 Jun 2017 02:36:12 -0700, alex.jakime...@gmail.com wrote: > Well, > > say IntStr ~~ Str # True > > In other words, IntStr *is* a Str. > > What I find interesting, however, is this difference: > > sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr > sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str > > I would have expected the same output in both cases. It's a bit involved. I opened a separate @LARRY ticket: https://rt.perl.org/Ticket/Display.html?id=131505