hashicorp / hcl2

Former temporary home for experimental new version of HCL
https://github.com/hashicorp/hcl
Mozilla Public License 2.0
373 stars 66 forks source link

convert to correct types in expressions #59

Closed jbardin closed 5 years ago

jbardin commented 5 years ago

If an operator takes an argument as a DynamicPseudoType, don't convert the value type. This prevents null values from changing their type, which for example would cause Equals to return Unknown rather than False.

jbardin commented 5 years ago

This is now reduced to just test coverage, and just needs a go.mod update once the cty changes are finalized

jbardin commented 5 years ago

new tests work, with updated and tidied module files.