...

Text file src/cuelang.org/go/cue/testdata/cycle/049_self-reference_cycles_conflicts_with_strings.txtar

Documentation: cuelang.org/go/cue/testdata/cycle

     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 --
     6a: {
     7	x: y + "?"
     8	y: x + "!"
     9}
    10a: x: "hey"
    11-- out/def --
    12a: {
    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 --
    30Leaks:  0
    31Freed:  4
    32Reused: 0
    33Allocs: 4
    34Retain: 1
    35
    36Unifications: 4
    37Conjuncts:    5
    38Disjuncts:    5
    39-- out/eval --
    40Errors:
    41a.x: conflicting values "hey!?" and "hey":
    42    ./in.cue:2:5
    43    ./in.cue:5:7
    44
    45Result:
    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}

View as plain text