No big deal... Removing the byval, or swapping the byval after datatype and it works fine.
But since functions work fine with byval before datatype, the DECLARE may confuse new
users.
DECLARE FUNCTION SomeFunction(byval int hm, byval string v) as string
print SomeFunction(1, "")
FUNCTION SomeFunction(byval int hm, byval string v) as string
return "ok"
end function
Output:
ERROR: ERROR: parameters mismatch for procedure somefunction
params given : #long#string@00
OPTIONS:
somefunction(int,int,string,string) returns string
WORD: ""
LINE: 923
FILE: "main source