When adding a state specification into a new-style (forward) declaration, the compiler prints warning 231
forward Func() <auto1:st1>; // warning 231: state specification on forward declaration is ignored
, but it doesn't do the same for old-style declarations:
public Func() <auto1:st1>; // no warnings
Moreover, the compiler assigns the specified state to the function and, as a result, doesn't allow to actually define the function with that state.
public Func() <auto1:st1>;
public Func() <auto1:st1> {} // error 084: state conflict: one of the states is already assigned to another implementation (symbol "Func")
Minimal complete verifiable example (MCVE):
See above.
Workspace Information:
Compiler version: 3.2.3664, 3.10.10
Command line arguments provided (or sampctl version):
Issue description:
When adding a state specification into a new-style (
forward
) declaration, the compiler prints warning 231, but it doesn't do the same for old-style declarations:
Moreover, the compiler assigns the specified state to the function and, as a result, doesn't allow to actually define the function with that state.
Minimal complete verifiable example (MCVE):
See above.
Workspace Information: