v/vlib/v/checker/tests/unimplemented_interface_i.vv

13 lines
120 B
V

interface Animal {
name string
}
struct Cat {
name int
}
fn main() {
mut animals := []Animal{}
animals << Cat{}
}