cuelang.org/go@v0.13.0/cue/testdata/fulleval/047_dont_bind_to_string_labels.txtar (about)

     1  #name: dont bind to string labels
     2  #evalFull
     3  -- in.cue --
     4  x: 1
     5  y: {
     6  	"x": 2
     7  	z:   x
     8  }
     9  -- out/def --
    10  x: 1
    11  y: {
    12  	x: 2
    13  	z: 1
    14  }
    15  -- out/export --
    16  x: 1
    17  y: {
    18  	x: 2
    19  	z: 1
    20  }
    21  -- out/yaml --
    22  x: 1
    23  y:
    24    x: 2
    25    z: 1
    26  -- out/json --
    27  {"x":1,"y":{"x":2,"z":1}}
    28  -- out/legacy-debug --
    29  <0>{x: 1, y: <1>{x: 2, z: 1}}
    30  -- out/compile --
    31  --- in.cue
    32  {
    33    x: 1
    34    y: {
    35      x: 2
    36      z: 〈1;x〉
    37    }
    38  }
    39  -- out/eval/stats --
    40  Leaks:  0
    41  Freed:  5
    42  Reused: 2
    43  Allocs: 3
    44  Retain: 0
    45  
    46  Unifications: 5
    47  Conjuncts:    6
    48  Disjuncts:    5
    49  -- out/eval --
    50  (struct){
    51    x: (int){ 1 }
    52    y: (struct){
    53      x: (int){ 2 }
    54      z: (int){ 1 }
    55    }
    56  }