cuelang.org/go@v0.10.1/cue/testdata/resolve/023_correct_error_messages.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: correct error messages 4 #evalPartial 5 -- in.cue -- 6 a: "a" & 1 7 -- out/def -- 8 a: _|_ // conflicting values "a" and 1 (mismatched types string and int) 9 -- out/legacy-debug -- 10 <0>{a: _|_(("a" & 1):conflicting values "a" and 1 (mismatched types string and int))} 11 -- out/compile -- 12 --- in.cue 13 { 14 a: ("a" & 1) 15 } 16 -- out/eval/stats -- 17 Leaks: 0 18 Freed: 2 19 Reused: 0 20 Allocs: 2 21 Retain: 0 22 23 Unifications: 2 24 Conjuncts: 3 25 Disjuncts: 2 26 -- out/eval -- 27 Errors: 28 a: conflicting values "a" and 1 (mismatched types string and int): 29 ./in.cue:1:4 30 ./in.cue:1:10 31 32 Result: 33 (_|_){ 34 // [eval] 35 a: (_|_){ 36 // [eval] a: conflicting values "a" and 1 (mismatched types string and int): 37 // ./in.cue:1:4 38 // ./in.cue:1:10 39 } 40 }