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