-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
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
fix(gnolang): fix an indexExpr preprocess bug #514
Conversation
Hey @ltzmaxwell, Thank you for the contribution 🙏 Can you please give me an example of when this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest looks good to me
(as an aside, I don't understand why we have files
almost exactly matching files2
if the tests are executed in the same way, but that belongs to another issue)
Let me add info about this point in the Edit: I just checked and the information is already there. The difference is:
See: https://github.com/gnolang/gno/blob/master/tests/imports.go#L61-L63 By default, we should try to put the tests on both folders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s merge, and wait for a make fmt
to happen in another PR, or that someone updates the CI to include tests/ files.
Missed that. Still think we could make this better, but will make a proposal in a pr |
Description
type assertion to *MapType may fail while preprocessing *IndexExpr, it may cause a
v, ok := Values[k]
operation fail especially when it's declared liketype Values map[string][]string
, detailed in map28c.gno test.How has this been tested?
passed.