title: returning queue from function in systemverilog
body: <p>I can't compile this code:</p>
  
  <pre><code>      function integer[$] get_register_name;
                  integer ret[$];
                  ret.push_back(1);
                  ret.push_back(2);
                  return ret;
        endfunction
  </code></pre>
  
  <p>Is it possible to return a queue from a function?</p>