data/full_repos/permissive/143278/ivltests/constfunc2.v
 line:5: before: "integer"
1: b"%Error: data/full_repos/permissive/143278/ivltests/constfunc2.v:9: Found definition of 'factorial' as a VAR but expected a task/function\n    factorial = n * factorial(n - 1);\n                    ^~~~~~~~~\n%Error: Exiting due to 1 error(s)\n"
function integer factorial;

input integer n;

begin
  if (n > 1)
    factorial = n * factorial(n - 1);
  else
    factorial = n;
end

endfunction
function integer factorial;


input integer n;

begin
  if (n > 1)
    factorial = n * factorial(n - 1);
  else
    factorial = n;
end

endfunction