You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For uint x immutable = 42 we currently need to unsafe-allow both state-variable-immutable and state-variable-assignment. This is error prone because state-variable-assignment will let through assignments to storage variables as well, which are the main thing to avoid. We should make the immutable override also allow assignments to immutable variables without the second override.
The text was updated successfully, but these errors were encountered:
For
uint x immutable = 42
we currently need tounsafe-allow
bothstate-variable-immutable
andstate-variable-assignment
. This is error prone becausestate-variable-assignment
will let through assignments to storage variables as well, which are the main thing to avoid. We should make the immutable override also allow assignments to immutable variables without the second override.The text was updated successfully, but these errors were encountered: