# New Ticket Created by  "Jimmy Zhuo" 
# Please include the string:  [perl #118865]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118865 >


JimmyZ> r: sub f(Int $x where $x > 0) { say "yup" }; my Int $a; f($a);
Camellia> rakudo b19f72: OUTPUT«Parameter '' requires an instance, but a type 
object was passed␤  in method Bridge at src/gen/CORE.setting:3562␤  in sub 
infix:<>> at src/gen/CORE.setting:3490␤  in sub infix:<>> at 
src/gen/CORE.setting:3340␤  in sub f at /tmp/RSujJD9_FI:1␤  in block  at 
/tmp/RSujJ…

The above is missing '$x'.

Timotimo> r: sub f(Int:D $x) { say "yup" }; my Int $a; f($a);
camellia> rakudo b19f72: OUTPUT«Parameter '$x' requires an instance, but a type 
object was passed␤  in sub f at /tmp/9PHIMfVEzS:1␤  in block  at 
/tmp/9PHIMfVEzS:1␤␤»
---
Jimmy Zhuo


Reply via email to