Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
generics_fn_called_multi_args_mismatch.vv
17
lines
·
13
sloc
·
178 bytes
·
ef5be22f81005b2237311a79b6383138084b0c53
Raw
1
fn main() {
2
x := 'ab'.runes()[..1]
3
foo_str(1, x)
4
5
foo := Foo[int]{}
6
foo.info(x)
7
}
8
9
fn foo_str[T](b T, a string) {
10
}
11
12
struct Foo[T] {
13
t T
14
}
15
16
fn (f Foo[T]) info(a string) {
17
}
18