Actually, I think that Resharper could detect such issues. But in that case, I've just found it by reading the diff on GitHub