File: v0.7errorprop.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (90 lines) | stat: -rw-r--r-- 1,300 bytes parent folder | download | duplicates (2)
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: {}
}