github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/tools/trim/testdata/issue1087.txtar (about)

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