# 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?

Reply via email to