Because technically the second declaration is the duplicate one. But maybe it doesn't matter all that much, the user can do a global search to find the offending main function.