The code below shows this error (Oracle 19c):
Is this reported by Oracle or by TOAD?
CREATE PROCEDURE proc AS
v_some_ot some_ot := NEW some_ot();
BEGIN
FOR cur_prb IN
(
SELECT VALUE( ov ) AS val
FROM object_view ov
ORDER BY ov.some_column
)
LOOP
NULL;
END LOOP;
END proc;