2021-01-13 23:44:29 +01:00
|
|
|
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
|
2021-10-11 14:41:31 +02:00
|
|
|
10 |
|
2020-05-06 11:29:37 +02:00
|
|
|
11 | fn main() {
|
|
|
|
12 | foo(Cat{})
|
|
|
|
| ~~~~~
|
|
|
|
13 | }
|
2021-10-11 14:41:31 +02:00
|
|
|
Details: main.Animal has `fn speak(x main.Animal, s string)`
|
|
|
|
main.Cat has `fn speak(c main.Cat)`
|