go-jsonnet/testdata/overriding_stdlib_desugared.jsonnet
Stanisław Barzowski b00b56c335 Avoid depending on stdlib variable for desugaring.
The fix is easy – we just use "$std" which the user cannot access,
because it's not a valid identifier.
2021-08-09 19:25:33 +01:00

8 lines
170 B
Jsonnet

// Make sure shadowing std does not cause problems for desugaring.
local std = {};
[
{ [x]: 17 for x in [] },
[ x for x in [] ],
42 % 2137,
"foo" in {},
]