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


<mberends> </lurk> moritz_: is it a known gotcha that named parameters
cause errors if they are typed and then omitted? S06 is silent on
typing.
<mberends> rakudo: class A { method m(:$p) { say "param $p"; }; };
A.new.m("HAI");
<p6eval> rakudo c10807: OUTPUT«param HAI␤»
<mberends> rakudo: class A { method m(Str :$p) { say "param $p"; }; };
A.new.m("HAI");
<p6eval> rakudo c10807: OUTPUT«param HAI␤»
<mberends> rakudo: class A { method m(Str :$p) { say "param $p"; }; };
A.new.m();
<p6eval> rakudo c10807: OUTPUT«Parameter type check failed for $p in
call to m [...]
<mberends> rakudo: class A { method m(:$p) { say "param $p"; }; }; A.new.m();
<p6eval> rakudo c10807: OUTPUT«Use of uninitialized value␤param ␤»
<mberends> <lurk>
         [12:31]
<moritz_> mberends: not known I think... care to open a ticket?
* masak submits

Reply via email to