Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
modules
/
interface_from_another_module
/
ifam_test.v
15
lines
·
11
sloc
·
164 bytes
·
462f1869bb700f21c1b23dee791b808e014ed6d5
Raw
1
module
main
2
3
import
interface_from_another_module.mod
4
5
interface
IBar {
6
mod.IFoo
7
}
8
9
struct
Abc {}
10
11
fn
test_interface() {
12
a := IBar(Abc{})
13
dump(a)
14
assert
true
15
}
16