diff options
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/unimplemented_interface_a.vv')
-rw-r--r-- | v_windows/v/vlib/v/checker/tests/unimplemented_interface_a.vv | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/unimplemented_interface_a.vv b/v_windows/v/vlib/v/checker/tests/unimplemented_interface_a.vv new file mode 100644 index 0000000..fad1194 --- /dev/null +++ b/v_windows/v/vlib/v/checker/tests/unimplemented_interface_a.vv @@ -0,0 +1,11 @@ +interface Animal { + name() string +} + +struct Cat {} + +fn foo(a Animal) {} + +fn main() { + foo(Cat{}) +} |