Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
unimplemented_interface_f.vv
12
lines
·
9
sloc
·
136 bytes
·
215657e16a654eb18b445856dd24d1ab1c8e99b3
Raw
1
interface Animal {
2
speak(s string)
3
}
4
5
struct Cat {}
6
7
fn (c Cat) speak() {}
8
9
fn main() {
10
mut animals := []Animal{}
11
animals << Cat{}
12
}
13