Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
unimplemented_interface_i.out
6
lines
·
6
sloc
·
283 bytes
·
4be45e8d02b09aef425df36904441fa224419a2e
Raw
1
vlib/v/checker/tests/unimplemented_interface_i.vv:11:13: error: `Cat` incorrectly implements field `name` of interface `Animal`, expected `string`, got `int`
2
9 | fn main() {
3
10 | mut animals := []Animal{}
4
11 | animals << Cat{}
5
| ~~~~~
6
12 | }