Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-declare natives #703

Open
Y-Less opened this issue Mar 24, 2022 · 0 comments
Open

Double-declare natives #703

Y-Less opened this issue Mar 24, 2022 · 0 comments

Comments

@Y-Less
Copy link
Member

Y-Less commented Mar 24, 2022

Issue description:

This is valid code:

forward Func(); // Muscle-memory made me type "foreach" at first here.
forward Func();

This isn't:

native Func();
native Func();

I can't really see any reason why declaring the same native identically twice should be an issue. Obviously declaring it differently is bad, but not the same. There are still open issues relating to forwards that are almost the same (can't find the issue/PR, but there was a discussion about forward Func(a); forward Func(b); being an error), so I don't know how that would apply here.

Minimal complete verifiable example (MCVE):

Workspace Information:

  • Compiler version:
  • Command line arguments provided (or sampctl version):
  • Operating System:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant