1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: allow multi returns in high order fns

This commit is contained in:
joe-conigliaro
2019-10-10 04:55:36 +11:00
committed by Alexander Medvednikov
parent 236b34c009
commit febd532c4a
3 changed files with 31 additions and 18 deletions

View File

@ -107,6 +107,14 @@ fn high_fn(f fn(int) int) {
}
fn high_fn_array(f fn(a []int) []int) {
}
fn high_fn_multi_return(a int, b fn (c []int, d []string) ([]int, []string)) {
}
fn test_fns() {
// no asserts for now, just test function declarations above
}