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
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? |
Since
state
is 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 thestate
keyword in guard definitions or thestate
temporary variable produced by the processor should be renamed to avoid this conflict.Here's an example:
