“Fatal error: Cannot redeclare

前端 未结 17 1002
[愿得一人]
[愿得一人] 2020-11-22 05:26

I have a function(this is exactly how it appears, from the top of my file):



        
17条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 06:08

    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.

提交回复
热议问题