Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
generics_method_called_arg_mismatch.vv
14
lines
·
10
sloc
·
137 bytes
·
50110d4c19594804aaa718ad372bcd2b6c46b8b4
Raw
1
fn main() {
2
mut obj := Obj{}
3
obj.set[Bar](Foo{})
4
}
5
6
struct Foo {}
7
8
struct Bar {
9
Foo
10
}
11
12
struct Obj {}
13
14
fn (mut o Obj) set[T](val T) {}
15