pulumi/pkg/codegen/hcl2
Zaid Ajaj 54e0bba6ff
[go/conformance] Fix l2-resource-primitives test (#17332)
### Description

This PR fixes the l2-resource-primitives conformance test in Go. The
problem was that expressions of the form `UnaryOperationExpr(Negate,
NumberExpr(N))` didn't get _lifted_ properly: we emitted `-N` instead of
`pulumi.Float64(-N)`.

The solution here is to rewrite the expression first from
`UnaryOperationExpr(Negate, NumberExpr(N))` into `NumberExpr(-N)` and
only then lift it like any other number.
2024-09-26 05:15:38 +00:00
..
model [go/conformance] Fix l2-resource-primitives test (#17332) 2024-09-26 05:15:38 +00:00
syntax Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00