v2 / vlib / v / checker / tests / no_interface_instantiation_b.out
15 lines · 15 sloc · 427 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/no_interface_instantiation_b.vv:3:10: notice: unused parameter: `s`
2 1 | interface Speaker {}
3 2 |
4 3 | fn my_fn(s Speaker) {}
5 | ^
6 4 |
7 5 | fn main() {
8vlib/v/checker/tests/no_interface_instantiation_b.vv:6:2: error: expected 1 argument, but got 0
9 4 |
10 5 | fn main() {
11 6 | my_fn()
12 | ~~~~~~~
13 7 | }
14Details: have ()
15 want (main.Speaker)
16