v2 / vlib / v / checker / tests / any_int_float_ban_err.out
44 lines · 44 sloc · 1.44 KB · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/checker/tests/any_int_float_ban_err.vv:1:12: error: unknown type `int_literal`
2 1 | type Foo = int_literal | float_literal
3 | ~~~~~~~~~~~
4 2 | type Fo2 = int_literal
5 3 |
6vlib/v/checker/tests/any_int_float_ban_err.vv:1:26: error: unknown type `float_literal`
7 1 | type Foo = int_literal | float_literal
8 | ~~~~~~~~~~~~~
9 2 | type Fo2 = int_literal
10 3 |
11vlib/v/checker/tests/any_int_float_ban_err.vv:2:12: error: unknown type `int_literal`
12 1 | type Foo = int_literal | float_literal
13 2 | type Fo2 = int_literal
14 | ~~~~~~~~~~~
15 3 |
16 4 | struct Int {
17vlib/v/checker/tests/any_int_float_ban_err.vv:5:4: error: unknown type `int_literal`
18 3 |
19 4 | struct Int {
20 5 | i int_literal
21 | ~~~~~~~~~~~
22 6 | f float_literal
23 7 | }
24vlib/v/checker/tests/any_int_float_ban_err.vv:6:4: error: unknown type `float_literal`
25 4 | struct Int {
26 5 | i int_literal
27 6 | f float_literal
28 | ~~~~~~~~~~~~~
29 7 | }
30 8 |
31vlib/v/checker/tests/any_int_float_ban_err.vv:9:10: error: unknown type `int_literal`
32 7 | }
33 8 |
34 9 | fn foo(i int_literal) int_literal {
35 | ~~~~~~~~~~~
36 10 | return i
37 11 | }
38vlib/v/checker/tests/any_int_float_ban_err.vv:13:11: error: unknown type `int_literal`
39 11 | }
40 12 |
41 13 | fn foo2() int_literal {
42 | ~~~~~~~~~~~
43 14 | return 1
44 15 | }
45