vxx2 / vlib / v / checker / tests / void_function_assign_to_string.out
17 lines · 17 sloc · 573 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/void_function_assign_to_string.vv:1:6: notice: unused parameter: `x`
2 1 | fn x(x int, y int) {
3 | ^
4 2 | }
5 3 |
6vlib/v/checker/tests/void_function_assign_to_string.vv:1:13: notice: unused parameter: `y`
7 1 | fn x(x int, y int) {
8 | ^
9 2 | }
10 3 |
11vlib/v/checker/tests/void_function_assign_to_string.vv:6:4: error: assignment mismatch: 1 variable but `x()` returns 0 values
12 4 | fn main() {
13 5 | mut a := ''
14 6 | a = x(1, 2) // hello
15 | ^
16 7 | eprintln('a: ${a}')
17 8 | }
18