File: 000_errors.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 (67 lines) | stat: -rw-r--r-- 1,708 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
#name: errors
#evalPartial
-- in.cue --
a: _|_ & _|_
b: null & _|_
c: b.a == _|_
d: _|_ != b.a
e: _|_ == _|_
f: ({} & false) == _|_
g: _|_ != ({} & false)
-- out/def --
a: _|_ // explicit error (_|_ literal) in source
b: _|_ // explicit error (_|_ literal) in source
c: true
d: false
e: true
-- out/legacy-debug --
<0>{a: _|_(explicit error (_|_ literal) in source), b: _|_(explicit error (_|_ literal) in source), c: true, d: false, e: true}
-- out/compile --
--- in.cue
{
  a: (_|_(explicit error (_|_ literal) in source) & _|_(explicit error (_|_ literal) in source))
  b: (null & _|_(explicit error (_|_ literal) in source))
  c: (〈0;b〉.a == _|_(explicit error (_|_ literal) in source))
  d: (_|_(explicit error (_|_ literal) in source) != 〈0;b〉.a)
  e: (_|_(explicit error (_|_ literal) in source) == _|_(explicit error (_|_ literal) in source))
  f: (({} & false) == _|_(explicit error (_|_ literal) in source))
  g: (_|_(explicit error (_|_ literal) in source) != ({} & false))
}
-- out/eval/stats --
Leaks:  0
Freed:  10
Reused: 7
Allocs: 3
Retain: 0

Unifications: 10
Conjuncts:    14
Disjuncts:    10
-- out/eval --
Errors:
explicit error (_|_ literal) in source:
    ./in.cue:1:4
explicit error (_|_ literal) in source:
    ./in.cue:1:10
explicit error (_|_ literal) in source:
    ./in.cue:2:11

Result:
(_|_){
  // [user]
  a: (_|_){
    // [user] explicit error (_|_ literal) in source:
    //     ./in.cue:1:4
    // explicit error (_|_ literal) in source:
    //     ./in.cue:1:10
  }
  b: (_|_){
    // [user] explicit error (_|_ literal) in source:
    //     ./in.cue:2:11
  }
  c: (bool){ true }
  d: (bool){ false }
  e: (bool){ true }
  f: (bool){ true }
  g: (bool){ false }
}