Title: Message Title
Henrik Lindberg commented on an issue
Puppet / Improvement PUP-2862
Validate that default value _expression_ for param does not define variable
If an parameterized entity has a parameter with a default value _expression_, that _expression_ may not include assignment expressions as it is undefined in which scope that variable is introduced.

This should be validated as an error.

{code}
define foo ($a = ($b = 10))
{code}

This will set {{$b}} in the enclosing scope of the define!


--
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 [email protected].
To post to this group, send email to [email protected].
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