2¢ I don't think this should be an error. A Slip type is a kinda odd thing to be mapping but it should work.
quick look: https://github.com/rakudo/rakudo/blob/a61bbddc005d0188e2409a9ef8feee0c9551ab08/src/core/Any-iterable-methods.pm#L121 It just checks whether it's a Slip type but should also be checking that it's defined. On Sat, Dec 12, 2015 at 2:30 PM Alex Jakimenko <perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Alex Jakimenko > # Please include the string: [perl #126883] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=126883 > > > > Code: > say 1.map: { Slip } > > Result: > Parameter '$slip' requires an instance of type Slip, but a type object was > passed. Did you forget a .new? > in block <unit> at -e:1 > > > The problem is that it mentions some internal “$slip” parameter. > > In this simple case it is pretty clear what is happening, but imagine the > type object coming from somewhere else. Perhaps there is a way to make the > error message slightly better? >