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

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