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