cuelang.org/go@v0.10.1/cue/testdata/cycle/049_self-reference_cycles_conflicts_with_strings.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: self-reference cycles conflicts with strings
     4  #evalPartial
     5  -- in.cue --
     6  a: {
     7  	x: y + "?"
     8  	y: x + "!"
     9  }
    10  a: x: "hey"
    11  -- out/def --
    12  a: {
    13  	x: _|_ // conflicting values "hey!?" and "hey"
    14  	y: "hey!"
    15  }
    16  -- out/legacy-debug --
    17  <0>{a: <1>{x: _|_(("hey!?" & "hey"):conflicting values "hey!?" and "hey"), y: "hey!"}}
    18  -- out/compile --
    19  --- in.cue
    20  {
    21    a: {
    22      x: (怈0;y怉 + "?")
    23      y: (怈0;x怉 + "!")
    24    }
    25    a: {
    26      x: "hey"
    27    }
    28  }
    29  -- out/eval/stats --
    30  Leaks:  0
    31  Freed:  4
    32  Reused: 0
    33  Allocs: 4
    34  Retain: 1
    35  
    36  Unifications: 4
    37  Conjuncts:    5
    38  Disjuncts:    5
    39  -- out/eval --
    40  Errors:
    41  a.x: conflicting values "hey!?" and "hey":
    42      ./in.cue:2:5
    43      ./in.cue:5:7
    44  
    45  Result:
    46  (_|_){
    47    // [eval]
    48    a: (_|_){
    49      // [eval]
    50      x: (_|_){
    51        // [eval] a.x: conflicting values "hey!?" and "hey":
    52        //     ./in.cue:2:5
    53        //     ./in.cue:5:7
    54      }
    55      y: (string){ "hey!" }
    56    }
    57  }