v/vlib/v/checker/tests/interface_sameness_check_fo...

17 lines
146 B
V

interface Interface {
mut:
method() u32
}
struct St {}
fn (st St) method() int {
panic('')
}
fn foo(_ Interface) {}
fn bar() {
foo(St{})
}