v/vlib/v/checker/tests/interface_generic_err.vv

9 lines
130 B
V

struct What<T> {}
// with or without generic
interface Why<T> {}
// no segfault without generic
what := What{}
why := Why(what)