From: Lukas Mai Date: Wed, 14 Nov 2012 14:12:23 +0000 (+0100) Subject: Merge branch 'metadata' into mooseish-types X-Git-Tag: v1.00_02~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cf69cd2971747fcdf9118fcfdf5b6d1869ad508;p=p5sagit%2FFunction-Parameters.git Merge branch 'metadata' into mooseish-types --- 5cf69cd2971747fcdf9118fcfdf5b6d1869ad508 diff --cc Parameters.xs index bcff6ab,9418c07..ba28c0e --- a/Parameters.xs +++ b/Parameters.xs @@@ -1326,10 -1068,9 +1328,10 @@@ static int parse_fun(pTHX_ Sentinel sen croak("In %"SVf": can't combine optional positional (%"SVf") and required named (%"SVf") parameters", SVfARG(declarator), SVfARG(param_spec->positional_optional.data[0].param.name), SVfARG(name)); } - Param *p = pv_extend(¶m_spec->named_required); + p = pv_extend(¶m_spec->named_required); p->name = name; p->padoff = padoff; + p->type = type; param_spec->named_required.used++; } } else {