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


Hey,

There seems to be problem with Rakudo handling optional positional
parameters in built-in sub MAIN.

Rakudo version: fresh git build on 2009/12/26

Code snippet: perl6 -e 'sub MAIN ($a, :$var) { say "a: $a, optional: $var"; }' 
param --var

results into:
Too many positional parameters passed; got 2 but expected 1
in Main (file src/gen_setting.pm, line 324)

---
Heikki Mehtänen
hei...@mehtanen.fi

Reply via email to