v/vlib/v/checker/tests/unimplemented_interface_j.vv

14 lines
128 B
V

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