mirror of
https://github.com/google/go-jsonnet.git
synced 2025-12-24 18:41:07 +01:00
The fix is easy – we just use "$std" which the user cannot access, because it's not a valid identifier.
8 lines
170 B
Jsonnet
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 {},
|
|
] |