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

Combination of static and stock specifiers not allowed in function declarations #622

Open
Daniel-Cortez opened this issue Dec 22, 2020 · 1 comment

Comments

@Daniel-Cortez
Copy link
Contributor

Daniel-Cortez commented Dec 22, 2020

Issue description:

The compiler allows to use a combination of static and stock class specifiers in function definitions and old-style declarations, but doesn't allow it in new-style declarations.

Minimal complete verifiable example (MCVE):

static stock Func(); // no errors
static stock Func() return 0; // no errors
forward static stock Func(); // error 010: invalid function or declaration

Workspace Information:

  • Compiler version: 3.2.3664, 3.10.10
  • Command line arguments provided (or sampctl version):
  • Operating System:
@stale
Copy link

stale bot commented Jun 22, 2021

This issue has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the state: stale label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant