v2 / vlib / v / checker / tests / if_match_result.out
76 lines · 76 sloc · 2.21 KB · 9760a9c6b258017ed728d323cbcd3f7016c40c3b
Raw
1vlib/v/checker/tests/if_match_result.vv:3:2: notice: match is always false
2 1 | // missing results
3 2 | _ = match 4 {
4 3 | 1 {}
5 | ^
6 4 | else {}
7 5 | }
8vlib/v/checker/tests/if_match_result.vv:6:8: notice: condition is always true
9 4 | else {}
10 5 | }
11 6 | _ = if true {
12 | ~~~~
13 7 | } else {
14 8 | }
15vlib/v/checker/tests/if_match_result.vv:12:2: notice: match is always false
16 10 | // void results
17 11 | _ = match 4 {
18 12 | 1 { println('') }
19 | ^
20 13 | else { exit(0) }
21 14 | }
22vlib/v/checker/tests/if_match_result.vv:15:8: notice: condition is always true
23 13 | else { exit(0) }
24 14 | }
25 15 | _ = if true {
26 | ~~~~
27 16 | println('')
28 17 | } else {
29vlib/v/checker/tests/if_match_result.vv:2:3: error: assignment mismatch: 1 variable 0 values
30 1 | // missing results
31 2 | _ = match 4 {
32 | ^
33 3 | 1 {}
34 4 | else {}
35vlib/v/checker/tests/if_match_result.vv:6:5: error: `if` expression requires an expression as the last statement of every branch
36 4 | else {}
37 5 | }
38 6 | _ = if true {
39 | ~~~~~~~
40 7 | } else {
41 8 | }
42vlib/v/checker/tests/if_match_result.vv:7:3: error: `if` expression requires an expression as the last statement of every branch
43 5 | }
44 6 | _ = if true {
45 7 | } else {
46 | ~~~~
47 8 | }
48 9 |
49vlib/v/checker/tests/if_match_result.vv:6:3: error: assignment mismatch: 1 variable 0 values
50 4 | else {}
51 5 | }
52 6 | _ = if true {
53 | ^
54 7 | } else {
55 8 | }
56vlib/v/checker/tests/if_match_result.vv:11:3: error: assignment mismatch: 1 variable 0 values
57 9 |
58 10 | // void results
59 11 | _ = match 4 {
60 | ^
61 12 | 1 { println('') }
62 13 | else { exit(0) }
63vlib/v/checker/tests/if_match_result.vv:16:2: error: the final expression in `if` or `match`, must have a value of a non-void type
64 14 | }
65 15 | _ = if true {
66 16 | println('')
67 | ~~~~~~~~~~~
68 17 | } else {
69 18 | exit(0)
70vlib/v/checker/tests/if_match_result.vv:15:3: error: assignment mismatch: 1 variable 0 values
71 13 | else { exit(0) }
72 14 | }
73 15 | _ = if true {
74 | ^
75 16 | println('')
76 17 | } else {
77