vxx2 / vlib / v / checker / tests / passing_expr_to_fn_expecting_voidptr.out
15 lines · 15 sloc · 573 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/passing_expr_to_fn_expecting_voidptr.vv:1:13: notice: unused parameter: `s`
2 1 | fn myprintf(s string, x voidptr) {
3 | ^
4 2 | }
5 3 |
6vlib/v/checker/tests/passing_expr_to_fn_expecting_voidptr.vv:1:23: notice: unused parameter: `x`
7 1 | fn myprintf(s string, x voidptr) {
8 | ^
9 2 | }
10 3 |
11vlib/v/checker/tests/passing_expr_to_fn_expecting_voidptr.vv:4:23: error: expression cannot be passed as `voidptr`
12 2 | }
13 3 |
14 4 | myprintf('%02.02f\n', 1.1)
15 | ~~~
16