# COMPAT rule - function with ref arg shall be automatic - Source URL: https://github.com/AsFigo/pyslint/issues/159 Add a new rule to check that functions with ref arguments are declared automatic. ```verilog module x; integer x1; function func (ref integer a[]); $display ("%p", a); endfunction initial begin integer a []; a = {1,2,3,4,5}; x1=func(a); end endmodule ``` ```log reference argument is illegal inside static task-function declaration. ```