I am sure many have noticed that if you want to copy/paste a chunk of code that has local variables in it, it doesn't let you paste because of 'unreferenced local variables', even though you are copying those variables along with the rest of the code.
Just a small bug, but annoying as the only way to get around it is construct duplicates of the variables, or extract them and copy them first.