Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
generics
/
generic_array_of_alias_test.v
13
lines
·
10
sloc
·
189 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
import
datatypes
2
3
type
Distance = int
4
5
struct
Foo {
6
field datatypes.LinkedList[Distance]
7
}
8
9
fn
test_generic_array_of_alias() {
10
foo := Foo{}
11
println(foo)
12
assert
'${foo.field}'
==
'[]'
13
}
14