You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
...
...
Migrated from rt.perl.org#61528 (status was 'resolved')
Searchable as RT61528$
The text was updated successfully, but these errors were encountered: