Closed PierreR closed 5 years ago
Amusing :(
I tried switching the parsing order between functions and datatypes, does that help?
I initially thought this was a mere check but it is actually a cast ... So it seems from the tests of this PR. This language is so ... surprising.
What does that mean in the first place? Datatypes can be called like functions and this results in a cast sometimes? Or is that just Integer
?
I have found this info in the spec: https://github.com/puppetlabs/puppet-specifications/blob/3c0f46adf68000c08dcb04fa4a61e73560a6787b/language/types_values_variables.md#integernew
beuh :(
Do you mind checking if my last commit breaks stuff?
Tested against a couple of nodes and it works without issues.
Thanks.
Something that probably should be supported ?