Local var assignment in static function

In reply to Des333:

For static task and function , you can refer to the following link

http://www.amiq.com/consulting/2016/08/05/gotcha-static-functiontask-in-systemverilog/