vxx2 / vlib / v / checker / tests / fn_call_arg_ptr_mismatch_err.out
27 lines · 27 sloc · 1.32 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/fn_call_arg_ptr_mismatch_err.vv:10:51: notice: unused parameter: `s_`
2 8 | }
3 9 |
4 10 | fn (s SomethingImplemented) get_value_implemented(s_ &ISomething) int {
5 | ~~
6 11 | return s.value
7 12 | }
8vlib/v/checker/tests/fn_call_arg_ptr_mismatch_err.vv:31:29: error: cannot use `&&SomethingImplemented` as `&ISomething` in argument 1 to `get_value_implemented`
9 29 | }
10 30 | // fn call
11 31 | _ := get_value_implemented(&s1)
12 | ~~~
13 32 | // method call
14 33 | _ := s1.get_value_implemented(&s1)
15vlib/v/checker/tests/fn_call_arg_ptr_mismatch_err.vv:33:32: error: cannot use `&&SomethingImplemented` as `&ISomething` in argument 1 to `get_value_implemented`
16 31 | _ := get_value_implemented(&s1)
17 32 | // method call
18 33 | _ := s1.get_value_implemented(&s1)
19 | ~~~
20 34 |
21 35 | s2 := &SomethingNotImplemented{
22vlib/v/checker/tests/fn_call_arg_ptr_mismatch_err.vv:39:33: error: cannot use `&&SomethingNotImplemented` as `&SomethingNotImplemented` in argument 1 to `get_value_not_implemented`
23 37 | }
24 38 | // fn call
25 39 | _ := get_value_not_implemented(&s2)
26 | ~~~
27 40 | }
28