v2 / vlib / v / checker / tests / empty_arr_to_generic_param_err.vv
10 lines · 7 sloc · 96 bytes · 4a4434ae4a285a9844302c63984e321286323b23
Raw
1fn t[T](a []T) {}
2
3struct Foo {}
4
5fn (t &Foo) t[T](a []T) {}
6
7fn main() {
8 t([])
9 Foo{}.t([])
10}
11