Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
interfaces
/
interface_and_embedded_struct_build_test.v
17
lines
·
12
sloc
·
241 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
pub
struct
Event {}
2
3
pub
struct
ViewBase {}
4
5
pub
fn
(vb ViewBase) point_inside(e Event) {}
6
7
pub
struct
ContainerBase {
8
ViewBase
9
}
10
11
interface
Focusable {
12
point_inside(Event)
13
}
14
15
fn
test_interface_and_embedded_struct_build() {
16
assert
true
17
}
18