cuelang.org/go@v0.10.1/cue/testdata/eval/v0.7errorprop.txtar (about) 1 // NOTE: do not add more tests to this file, as it may obfuscate the test case. 2 3 -- in.cue -- 4 a: #A 5 a: c: 1 6 #A: {} 7 -- out/eval/stats -- 8 Leaks: 0 9 Freed: 4 10 Reused: 1 11 Allocs: 3 12 Retain: 1 13 14 Unifications: 4 15 Conjuncts: 6 16 Disjuncts: 5 17 -- out/evalalpha -- 18 Errors: 19 a.c: field not allowed: 20 ./in.cue:2:4 21 22 Result: 23 (_|_){ 24 // [eval] 25 a: (_|_){ 26 // [eval] 27 c: (_|_){ 28 // [eval] a.c: field not allowed: 29 // ./in.cue:2:4 30 } 31 } 32 #A: (#struct){ 33 } 34 } 35 -- diff/-out/evalalpha<==>+out/eval -- 36 diff old new 37 --- old 38 +++ new 39 @@ -1,8 +1,6 @@ 40 Errors: 41 a.c: field not allowed: 42 - ./in.cue:1:4 43 ./in.cue:2:4 44 - ./in.cue:3:5 45 46 Result: 47 (_|_){ 48 @@ -11,9 +9,7 @@ 49 // [eval] 50 c: (_|_){ 51 // [eval] a.c: field not allowed: 52 - // ./in.cue:1:4 53 // ./in.cue:2:4 54 - // ./in.cue:3:5 55 } 56 } 57 #A: (#struct){ 58 -- diff/todo/p2 -- 59 Missing error positions. 60 -- out/eval -- 61 Errors: 62 a.c: field not allowed: 63 ./in.cue:1:4 64 ./in.cue:2:4 65 ./in.cue:3:5 66 67 Result: 68 (_|_){ 69 // [eval] 70 a: (_|_){ 71 // [eval] 72 c: (_|_){ 73 // [eval] a.c: field not allowed: 74 // ./in.cue:1:4 75 // ./in.cue:2:4 76 // ./in.cue:3:5 77 } 78 } 79 #A: (#struct){ 80 } 81 } 82 -- out/compile -- 83 --- in.cue 84 { 85 a: ć0;#Ać 86 a: { 87 c: 1 88 } 89 #A: {} 90 }