Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
generic_fn_infinite_loop_limit_err.vv
8
lines
·
7
sloc
·
186 bytes
·
017cc6738ba1919ea9c8ddb520e1fce5c00065ab
Raw
1
fn f1[T](x T, i int) T {
2
return x
3
}
4
5
fn main() {
6
ff1 := f1 // <-- missing e.g. `[int]`
7
// ff1 := f1[int] <-- is a valid usage with generic return types that are not generic structs
8
}
9