mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
117 B
V
10 lines
117 B
V
fn g<T>(arr []T) {
|
|
mut r := []T{}
|
|
r << arr
|
|
assert arr.len > 0
|
|
}
|
|
|
|
fn test_generic_array_append() {
|
|
g([1, 2, 3])
|
|
}
|