Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v4
/
vlib
/
v
/
checker
/
tests
/
unimplemented_interface_e.vv
14
lines
·
10
sloc
·
152 bytes
·
c80cc917c7c4f568d6759741710ebc96fca36ca2
Raw
1
interface Animal {
2
speak(s string)
3
}
4
5
struct Cat {}
6
7
fn (c Cat) speak(s &string) {}
8
9
fn foo(a Animal) {}
10
11
fn main() {
12
foo(Cat{})
13
_ = Animal(Cat{})
14
}
15