Title: Message Title
Kurt Wall commented on an issue
Puppet / Bug PUP-2287
Lambda with default valued parameter cannot be overridden
If a default value is given for a lambdas parameter it will not be overridden by a given value.

The logic in evaluator_impl L 209-217
{code}
      given_argument = m[1]
      argument_name = m[0].name
      default_expression = m[0].value

      value = if default_expression
        evaluate(default_expression, scope)
      else
        given_argument
  ...


--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to