Fixed with 502b886e8d14dbd51b5 , needs tests
$ 6 'say 1.map: { Slip }'
((Slip))
> On 12 Dec 2015, at 03:30, Alex Jakimenko (via RT)
> <[email protected]> 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?