v/vlib/v/checker/tests/generics_undefined_operatio...

15 lines
138 B
V

struct V2d<T> {
mut:
x T
y T
}
fn main() {
v1 := V2d<int>{2, 2}
v2 := V2d<int>{2, 3}
v3 := V2d<int>{4, 6}
if v1 * v2 == v3 {
}
}