HomePhorge

(PUP-514) Error when required args follow optional
a36160c986afUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-514) Error when required args follow optional

This adds a check when the signature for a closure is being calculated
to catch invalid parameter specifications where required arguments are
placed after optional onces. Allowing that would mean that the argument
range information would be incorrect.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU07e695fe96be: (PUP-514) Enforce types on lambda parameters
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUa36160c986af: (PUP-514) Error when required args follow optional (authored by Andrew Parker <andy@puppetlabs.com>).Jun 12 2014, 11:46 PM