Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong evaluation of parameter name if using a hash containing variable as default value #49

Closed
jvdmr opened this issue Apr 8, 2022 · 0 comments · Fixed by #50
Closed

Comments

@jvdmr
Copy link

jvdmr commented Apr 8, 2022

Similar issue to #30, but with a hash default instead of an array.

Example:

# @summary example class
#
# @param parameter_1
# @param parameter_2
# @param parameter_3
# @param parameter_4
# @param parameter_5
# @param parameter_6
# @param parameter_7
# @param parameter_8
#
class example (
        Hash $parameter_1 = $variable1,
        Hash $parameter_2 = { $variable2, },
        Hash $parameter_3 = { $variable3, 'string1', },
        Hash $parameter_4 = {
                $variable4,
                'string1',
        },
        Hash $parameter_5 = { $variable5, $variable6, 'string1', },
        Hash $parameter_6 = { $variable7, 'string1', $variable8, },
        Hash $parameter_7 = { 'string1', $variable9, },
        Hash $parameter_8 = {
                'string1',
                $variable10,
                'string2',
        },
) {
        # foo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants