compiler
compiler copied to clipboard
Function `entry()` is allowed to be called manually
Issue description:
entry() is a special function, it's called automatically on each state change, but for some reason it's also allowed to be called manually. Perhaps we should treat manual calls of this function as errors?
Minimal complete verifiable example (MCVE):
entry() <auto1:ST1> {}
main()
{
entry();
}
Workspace Information:
- Compiler version: 3.2.3664, 3.10.10
- Command line arguments provided (or sampctl version):
- Operating System:
Perhaps we should treat manual calls of this function as errors?
Absolutely.
This issue has been automatically marked as stale because it has not had recent activity.