go-jsonnet/testdata/empty_object_comp.jsonnet
Stanisław Barzowski 3190aff1d4 Fix crash when using empty object comprehension (#301)
The object was not properly created when object comprehension
was empty.
2019-07-24 12:58:59 -04:00

6 lines
118 B
Jsonnet

[
{} + { [x]: 42 for x in [] },
{ [x]: 42 for x in [] } + {},
std.objectFields({ [x]: 42 for x in [] })
]