v/vlib/v/checker/tests/generic_interface_err.vv

11 lines
106 B
V

struct Struct<T> {
value int
}
interface Interface<T> {
method() T
}
s := Struct{7}
i := Interface(s)