github.com/solo-io/cue@v0.4.7/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 -- 30 Errors: 31 a.x: conflicting values "hey!?" and "hey": 32 ./in.cue:2:5 33 ./in.cue:5:7 34 35 Result: 36 (_|_){ 37 // [eval] 38 a: (_|_){ 39 // [eval] 40 x: (_|_){ 41 // [eval] a.x: conflicting values "hey!?" and "hey": 42 // ./in.cue:2:5 43 // ./in.cue:5:7 44 } 45 y: (string){ "hey!" } 46 } 47 }