# New Ticket Created by  Cory Spencer 
# Please include the string:  [perl #61528]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61528 >



When defining a subroutine such as the following:

   sub foo (Int $x?) { say "x = $x" };

and calling it without passing in a value as in:

   foo();

a type check error will occur:

   Parameter type check failed in call to foo
   current instr.: 'die' pc 14378 (src/builtins/control.pir:188)
   called from Sub '!TYPECHECKPARAM' pc 15344 (src/builtins/guts.pir:136)
   called from Sub 'foo' pc 134 (EVAL_13:66)
   called from Sub '_block14' pc 59 (EVAL_13:38)
   ...
   ...

Reply via email to