github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/cue/testdata/eval/errunifiy.txtar (about) 1 Incomplete errors should not unify with values. 2 3 -- in.cue -- 4 a: or([]) 5 a: "t" 6 7 b: _|_ 8 b: "t" 9 -- out/eval -- 10 Errors: 11 explicit error (_|_ literal) in source: 12 ./in.cue:4:4 13 14 Result: 15 (_|_){ 16 // [user] 17 a: (_|_){ 18 // [incomplete] empty list in call to or: 19 // ./in.cue:1:4 20 } 21 b: (_|_){ 22 // [user] explicit error (_|_ literal) in source: 23 // ./in.cue:4:4 24 } 25 } 26 -- out/compile -- 27 --- in.cue 28 { 29 a: or([]) 30 a: "t" 31 b: _|_(explicit error (_|_ literal) in source) 32 b: "t" 33 }