test: https://github.com/perl6/roast/commit/c205f71781a29a456349a791fdf912d6955fe50f
On Sat, Dec 12, 2015 at 8:13 PM Elizabeth Mattijsen <l...@dijkmat.nl> wrote: > Fixed with 502b886e8d14dbd51b5 , needs tests > > $ 6 'say 1.map: { Slip }' > ((Slip)) > > > > On 12 Dec 2015, at 03:30, Alex Jakimenko (via RT) < > 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? > >