pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
306 stars 72 forks source link

No errors when using `stock` on a variable with a name starting with `@` #625

Open Daniel-Cortez opened 3 years ago

Daniel-Cortez commented 3 years ago

Issue description:

The compiler issues error 042 (invalid combination of class specifiers) when specifier stock is used when defining a function whose name starts with @ (because such names imply public, and public functions can't be stock), but doesn't do the same for variables.

Minimal complete verifiable example (MCVE):

stock @Func(){} // error 042: invalid combination of class specifiers
stock @var = 0; // no errors/warnings

Workspace Information:

stale[bot] commented 3 years ago

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