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:
Compiler version: 3.2.3664, 3.10.10
Command line arguments provided (or sampctl version):
Issue description:
The compiler issues error 042 (
invalid combination of class specifiers
) when specifierstock
is used when defining a function whose name starts with@
(because such names implypublic
, and public functions can't be stock), but doesn't do the same for variables.Minimal complete verifiable example (MCVE):
Workspace Information: