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

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