v/vlib/v/checker/tests/interface_init_err.vv

17 lines
164 B
V

interface Handler {
foo string
handle(int) int
}
struct Server {
handler Handler
}
fn (s Server) handle(x int) int {
return x
}
fn main() {
_ := Server{}
}