Permalink
Browse files

start to fix some run time errors

it helps to provide defaults of the nominal type of the parameter
  • Loading branch information...
1 parent 3fccc0c commit 248130465150ac8ce96da3c6aefe131f8aca5649 @moritz moritz committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/IO/Prompter.pm
View
@@ -115,7 +115,7 @@ multi sub prompt (
Str :d(:$default),
#--> :D(:$DEFAULT) of Str,
# :e( :$echo ) of Str,
-Bool :f(:$fail) = sub{False},
+Bool :f(:$fail) = False,
IO :$in = $*IN,
# :g( :$guarantee ) of Hash = hash{},
# :h( :$history ) of Str,

0 comments on commit 2481304

Please sign in to comment.