Correct silly mistake in method redeclaration check.

The name of the parameters doesn't matter of course.