...

Text file src/cuelang.org/go/tools/trim/testdata/issue1087.txtar

Documentation: cuelang.org/go/tools/trim/testdata

     1#Issue: 1087
     2-- in.cue --
     3configs: {
     4	key: 123
     5}
     6
     7shared: {
     8	param:   string
     9	derived: configs[param]
    10}
    11
    12a: shared & {
    13	param: "key"
    14}
    15-- out/trim --
    16== in.cue
    17configs: {
    18	key: 123
    19}
    20
    21shared: {
    22	param:   string
    23	derived: configs[param]
    24}
    25
    26a: shared & {
    27	param: "key"
    28}

View as plain text