| 1 | vlib/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 | } |
| 8 | vlib/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) |
| 15 | vlib/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{ |
| 22 | vlib/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 | |