vxx2 / vlib / v / checker / tests / unknown_comptime_expr.out
49 lines · 49 sloc · 1.51 KB · f55c2956fbd893cf22df1780724a2c4c436332e2
Raw
1vlib/v/checker/tests/unknown_comptime_expr.vv:7:6: error: `foo` is mut and may have changed since its definition
2 5 | fn main() {
3 6 | mut foo := 0
4 7 | $if foo == 0 {
5 | ~~~
6 8 | }
7 9 |
8vlib/v/checker/tests/unknown_comptime_expr.vv:11:6: error: definition of `bar` is unknown at compile time
9 9 |
10 10 | bar := unknown_at_ct()
11 11 | $if bar == 0 {
12 | ~~~
13 12 | }
14 13 | }
15vlib/v/checker/tests/unknown_comptime_expr.vv:17:6: error: undefined ident: `huh`
16 15 | fn if_is() {
17 16 | s := S1{}
18 17 | $if huh.typ is T {
19 | ~~~
20 18 | }
21 19 | $if s is int {
22vlib/v/checker/tests/unknown_comptime_expr.vv:17:10: error: `huh` does not return a value
23 15 | fn if_is() {
24 16 | s := S1{}
25 17 | $if huh.typ is T {
26 | ~~~
27 18 | }
28 19 | $if s is int {
29vlib/v/checker/tests/unknown_comptime_expr.vv:17:17: error: unknown type `T`
30 15 | fn if_is() {
31 16 | s := S1{}
32 17 | $if huh.typ is T {
33 | ^
34 18 | }
35 19 | $if s is int {
36vlib/v/checker/tests/unknown_comptime_expr.vv:21:13: error: invalid $if right expr: expected a type
37 19 | $if s is int {
38 20 | }
39 21 | $if s.i is 5 {
40 | ^
41 22 | }
42 23 | $if s.i is T {
43vlib/v/checker/tests/unknown_comptime_expr.vv:23:13: error: unknown type `T`
44 21 | $if s.i is 5 {
45 22 | }
46 23 | $if s.i is T {
47 | ^
48 24 | }
49 25 | }
50