v2 / vlib / v / parser / tests / generic_fn_export_err.vv
4 lines · 4 sloc · 86 bytes · 34d9790f14a5926b0f416d42c3297e98b407570b
Raw
1@[export: "sort_array"]
2pub fn sort_array[T](mut arr []T) {
3 arr.sort(|a, b| a < b)
4}
5