vxx2 / vlib / v / checker / tests / generic_fn_generic_name_unresolved_err.vv
15 lines · 13 sloc · 148 bytes · eee9ee52006ae004c2224533b4fc208ad403bb2d
Raw
1module main
2
3fn func[T](arg string, val T) int {
4 return 2
5}
6
7fn main() {
8 _ := func[T]
9 _ := {
10 'test': func[T]
11 }
12 _ := {
13 func[T]: 'test'
14 }
15}
16