I have a function(this is exactly how it appears, from the top of my file):
means you have already created a class with same name.
For Example:
class ExampleReDeclare {} // some code here class ExampleReDeclare {}
That second ExampleReDeclare throw the error.