v2 / vlib / v / checker / tests / unimplemented_interface_b.out
15 lines · 15 sloc · 547 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/unimplemented_interface_b.vv:9:8: notice: unused parameter: `a`
2 7 | fn (c Cat) name() {}
3 8 |
4 9 | fn foo(a Animal) {}
5 | ^
6 10 |
7 11 | fn main() {
8vlib/v/checker/tests/unimplemented_interface_b.vv:13:6: error: `Cat` incorrectly implements method `name` of interface `Animal`: expected return type `string`
9 11 | fn main() {
10 12 | c := Cat{}
11 13 | foo(c)
12 | ^
13 14 | }
14Details: main.Animal has `fn name(x main.Animal) string`
15 main.Cat has `fn name(c main.Cat)`
16