data/full_repos/permissive/143278/vhdl_tests/autof.v
 line:5: before: "["
1: b"%Error: data/full_repos/permissive/143278/vhdl_tests/autof.v:10: Found definition of 'fact' as a VAR but expected a task/function\n      fact = n * fact(n-1);\n                 ^~~~\n%Error: Exiting due to 1 error(s)\n"
function automatic [7:0] fact;
    input [7:0] n;
    if (n == 0)
      fact = 1;
    else
      fact = n * fact(n-1);
  endfunction
function automatic [7:0] fact;

    input [7:0] n;
    if (n == 0)
      fact = 1;
    else
      fact = n * fact(n-1);
  endfunction