v/vlib/v/checker/tests/any_int_float_ban_err.out

46 lines
1.4 KiB
Plaintext

vlib/v/checker/tests/any_int_float_ban_err.vv:1:12: error: unknown type `int_literal`
1 | type Foo = int_literal | float_literal
| ~~~~~~~~~~~
2 | type Fo2 = int_literal
3 |
vlib/v/checker/tests/any_int_float_ban_err.vv:2:12: error: unknown type `int_literal`
1 | type Foo = int_literal | float_literal
2 | type Fo2 = int_literal
| ~~~~~~~~~~~
3 |
4 | struct Int {
vlib/v/checker/tests/any_int_float_ban_err.vv:5:7: error: unknown type `int_literal`
3 |
4 | struct Int {
5 | i int_literal
| ~~~~~~~~~~~
6 | f float_literal
7 | }
vlib/v/checker/tests/any_int_float_ban_err.vv:6:7: error: unknown type `float_literal`
4 | struct Int {
5 | i int_literal
6 | f float_literal
| ~~~~~~~~~~~~~
7 | }
8 |
vlib/v/checker/tests/any_int_float_ban_err.vv:9:10: error: unknown type `int_literal`
7 | }
8 |
9 | fn foo(i int_literal) int_literal {
| ~~~~~~~~~~~
10 | return i
11 | }
vlib/v/checker/tests/any_int_float_ban_err.vv:13:11: error: unknown type `int_literal`
11 | }
12 |
13 | fn foo2() int_literal {
| ~~~~~~~~~~~
14 | return 1
15 | }
vlib/v/checker/tests/any_int_float_ban_err.vv:14:12: error: cannot use `int literal` as type `int_literal` in return argument
12 |
13 | fn foo2() int_literal {
14 | return 1
| ^
15 | }