Static variable inside a non static function

A class has a function that is non-static. However, there is a member declared inside the function as static. What would the behavior be in this case?

class ABC;
  function check;
    static cfg_var;
    if (cfg_var==null) uvm_config_db #(cfg)::get(this, "", "m_cfg", cfg_var);
    //do something here
  endfunction

endclass

initial begin
  @(posedge clk)
  //call function check
end

Does cfg_var evaluate to null every cycle?

In reply to kernalmode1:

Variables declared inside a class method have lifetimes unrelated to the class they are declared in. Please see automatic variables inside static method | Verification Academy

In reply to dave_59:

Hi Dave,

So if I have understood this correctly, cfg_var will retain its static lifetime regardless. And it does not evaluate to null each cycle, correct?