File: 023_correct_error_messages.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 (38 lines) | stat: -rw-r--r-- 732 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
#name: correct error messages
#evalPartial
-- in.cue --
a: "a" & 1
-- out/def --
a: _|_ // conflicting values "a" and 1 (mismatched types string and int)
-- out/legacy-debug --
<0>{a: _|_(("a" & 1):conflicting values "a" and 1 (mismatched types string and int))}
-- out/compile --
--- in.cue
{
  a: ("a" & 1)
}
-- out/eval/stats --
Leaks:  0
Freed:  2
Reused: 0
Allocs: 2
Retain: 0

Unifications: 2
Conjuncts:    3
Disjuncts:    2
-- out/eval --
Errors:
a: conflicting values "a" and 1 (mismatched types string and int):
    ./in.cue:1:4
    ./in.cue:1:10

Result:
(_|_){
  // [eval]
  a: (_|_){
    // [eval] a: conflicting values "a" and 1 (mismatched types string and int):
    //     ./in.cue:1:4
    //     ./in.cue:1:10
  }
}