git.delta.rocks / jrsonnet / refs/commits / 6fbe7c61b4ca

difftreelog

source

tests/golden/null_coalesce_chain.jsonnet271 Bsourcehistory
1// Regression test: chained index a.b.c.d should produce a single2// Index { a, [b, c, d] } not nested Index nodes.3// This matters for exp-null-coaelse where a?.b.c should skip .c if .b is null.45local obj = { a: { b: { c: 42 } } };67[8  obj.a.b.c,9  {a: {b: 1}}.a.b,10]