v2 / vlib / v / checker / tests / unimplemented_interface_h.vv
10 lines · 8 sloc · 109 bytes · 4be45e8d02b09aef425df36904441fa224419a2e
Raw
1interface Animal {
2 name string
3}
4
5struct Cat {}
6
7fn main() {
8 mut animals := []Animal{}
9 animals << Cat{}
10}
11