Claus Pedersen
Member³
I have a request for compiler hints. I would like that unused assignments when declaring a variable are detected.
I would like compiler hints to detect that the first assignment := 1 is detected in the same manner that the assignment := 2 is reported as never being used.
Code:
FUNCTION tester RETURN NUMBER IS
var NUMBER := 1; -- this assignment is not reported
BEGIN
var := 2;
var := 3;
RETURN var;
END;