title: Using ROWTYPE in PL/SQL VARRAY giving compilation errors
body: <p>If I try out the below code then it works fine:</p>
  
  <pre><code>declare
  type v_varray is varray(50) of emp%rowtype;
  v_emp_details v_varray;
  begin
  select * bulk collect into v_emp_details from emp where dept_id = 1;
  for i in 1 .. v_emp_details.count
  loop
      dbms_output.put_line('Emp Name : ' || v_emp_details(i).emp_name);
  end loop;
  end;
  </code></pre>
  
  <p>But if I try creating VARRAY as a database object like this:</p>
  
  <pre><code>create or replace type xyz is varray(20) of emp%ROWTYPE
  </code></pre>
  
  <p>Why is this giving compilation errors?</p>