data/full_repos/permissive/143278/ivltests/sv_darray_function.v
 line:23: before: "logic"
1: b'%Error: data/full_repos/permissive/143278/ivltests/sv_darray_function.v:28: Unsupported: Dynamic array new\n    tmp = new[$size(inp)];\n          ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_darray_function.v:42: Unsupported: Dynamic array new\n    a = new[3];\n        ^~~\n%Error: Exiting due to 2 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function byte_array inc_array(byte_array inp);
    byte_array tmp;
    tmp = new[$size(inp)];

    for(int i = 0; i < $size(inp); ++i)
    begin
        tmp[i] = inp[i] + 1;
    end

    return tmp;
endfunction
function byte_array inc_array(byte_array inp);

    byte_array tmp;
    tmp = new[$size(inp)];

    for(int i = 0; i < $size(inp); ++i)
    begin
        tmp[i] = inp[i] + 1;
    end

    return tmp;
endfunction