google / google/jsonnet

Desugaring of +: substitutes self/super too deeply

Open
#345 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

When implementing +:, the desugarer currently substitutes self and super out of deeply nested objects when it is not necessary. See this thread and example:

https://groups.google.com/forum/#!topic/jsonnet/IYrLl-6MpZY

`{[{a: "y"}{b: super.a}.b]+: 1}`

@guoshimin

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.