Restore redefined-while-unused
violations in classes
#5926
Merged
redefined-while-unused
violations in classes
#5926