v2 / vlib / v / checker / tests / unimplemented_interface_f.out
8 lines · 8 sloc · 394 bytes · 0386f2bbea73e19ad1f8f51abcb4e4c2dc2f0f4f
Raw
1vlib/v/checker/tests/unimplemented_interface_f.vv:11:13: error: `Cat` incorrectly implements method `speak` of interface `Animal`: expected 2 parameter(s), not 1
2 9 | fn main() {
3 10 | mut animals := []Animal{}
4 11 | animals << Cat{}
5 | ~~~~~
6 12 | }
7Details: main.Animal has `fn speak(x main.Animal, s string)`
8 main.Cat has `fn speak(c main.Cat)`
9