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