We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code snippet runs successfully in Gno and outputs here 3s, which is incorrect behavior since time.Second is a constant:
here 3s
time.Second
package main import "time" func main() { time.Second = 3 * time.Second println("here", time.Second) }
This code should produce an error indicating that you cannot assign to time.Second, such as:
cannot assign to time.Second (neither addressable nor a map index expression)
The text was updated successfully, but these errors were encountered:
88a0c4e
Successfully merging a pull request may close this issue.
Description
The following code snippet runs successfully in Gno and outputs
here 3s
, which is incorrect behavior sincetime.Second
is a constant:Expected Behavior
This code should produce an error indicating that you cannot assign to
time.Second
, such as:The text was updated successfully, but these errors were encountered: