| 1 | vlib/v/checker/tests/unimplemented_interface_c.vv:7:17: notice: unused parameter: `s` |
| 2 | 5 | struct Cat {} |
| 3 | 6 | |
| 4 | 7 | fn (c Cat) name(s string) {} |
| 5 | | ^ |
| 6 | 8 | |
| 7 | 9 | fn foo(a Animal) {} |
| 8 | vlib/v/checker/tests/unimplemented_interface_c.vv:9:8: notice: unused parameter: `a` |
| 9 | 7 | fn (c Cat) name(s string) {} |
| 10 | 8 | |
| 11 | 9 | fn foo(a Animal) {} |
| 12 | | ^ |
| 13 | 10 | |
| 14 | 11 | fn main() { |
| 15 | vlib/v/checker/tests/unimplemented_interface_c.vv:12:6: error: `Cat` incorrectly implements method `name` of interface `Animal`: expected 1 parameter(s), not 2 |
| 16 | 10 | |
| 17 | 11 | fn main() { |
| 18 | 12 | foo(Cat{}) |
| 19 | | ~~~~~ |
| 20 | 13 | } |
| 21 | Details: main.Animal has `fn name(x main.Animal)` |
| 22 | main.Cat has `fn name(c main.Cat, s string)` |
| 23 | |