Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
aliases
/
alias_array_has_method_test.v
11
lines
·
9
sloc
·
155 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
type
Alias = []int
2
3
fn
(a Alias) last() int {
4
return
22
5
}
6
7
fn
test_alias_array_has_method() {
8
ret := Alias([0]).last()
9
println(ret)
10
assert ret == 22
11
}
12