Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDisallow keyword `state` in guards #606
Open
Labels
Comments
|
Oh, forgot to mention that the class also has a Since one can get access to the Truffle |
|
Tracked internally as Issue GR-20793. |
|
Can I work on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since
stateis a reserved keyword in Truffle's guard mechanism, it should not be possible to use it in a guard definition as this can cause serious problems. The annotation processor should either reject thestatekeyword in guard definitions or thestatetemporary variable produced by the processor should be renamed to avoid this conflict.Here's an example:
