v2 / vlib / v / tests / modules / interface_from_another_module / ifam_test.v
15 lines · 11 sloc · 164 bytes · 462f1869bb700f21c1b23dee791b808e014ed6d5
Raw
1module main
2
3import interface_from_another_module.mod
4
5interface IBar {
6 mod.IFoo
7}
8
9struct Abc {}
10
11fn test_interface() {
12 a := IBar(Abc{})
13 dump(a)
14 assert true
15}
16