Bug: hint "Value assigned to ... never used in ..." is not reported inside loop

Claus Pedersen

Member³
I have the following code:
Code:
CREATE PROCEDURE tester IS
  myInt INT;
BEGIN
  FOR cnt IN 1..2 LOOP
    myInt := 0;
  END LOOP;
END;

PL/SQL Developer does not report the unused assignment in line 5.
If I move the assignment outside the loop, it is reported correctly.
 
Back
Top