go-jsonnet/testdata/object_comp_dollar3.jsonnet
2017-10-03 19:51:01 -04:00

4 lines
103 B
Jsonnet

local obj = { [x]: if x == "a" then 42 else $.a + 1 for x in ["a", "b", "c"] };
{ obj: obj + {a: 1} }