Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
structs
/
struct_with_alias_embed_test.v
13
lines
·
10
sloc
·
130 bytes
·
b0ea31e90d145fead68fc62625b5b40c060937f3
Raw
1
struct
Foo1 {}
2
3
type
Foo2 = Foo1
4
5
struct
Bar {
6
Foo2
7
}
8
9
fn
test_main() {
10
assert Bar{}.str() ==
'Bar{
11
Foo2: Foo2(Foo1{})
12
}'
13
}
14