v/vlib/v/checker/tests/generics_method_called_arg_...

15 lines
137 B
V

fn main() {
mut obj := Obj{}
obj.set<Bar>(Foo{})
}
struct Foo {}
struct Bar {
Foo
}
struct Obj {}
fn (mut o Obj) set<T>(val T) {}