Prolint rule "nestedfunc" warns when it finds a function definition (or a procedure definition) inside a code block.
For example:
FOR EACH customer : FUNCTION Foo RETURNS CHARACTER (city AS CHARACTER) : END FUNCTION. END.
... because it is plain silly and ugly to do that, even if the compiler accepts it.
Functions (and procedures) should not be defined inside code blocks.