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
package main func main() { var i float64 i++ }
$ gno run a.gno panic running expression main(): unexpected type in in operation main.runExpr.func1() /home/howl/oc/gno2/gnovm/cmd/gno/run.go:158 +0x138 panic({0xbeb9a0, 0xf46680}) /usr/lib/go/src/runtime/panic.go:884 +0x213 github.com/gnolang/gno/gnovm/pkg/gnolang.(*Machine).doOpInc(0xc0000c4a20) /home/howl/oc/gno2/gnovm/pkg/gnolang/op_inc_dec.go:46 +0x55d
It seems to just be missing from the type switch.
(substituting inc/dec statements with x += 1 or x -= 1 works)
x += 1
x -= 1
The text was updated successfully, but these errors were encountered:
fix(gnolang): allow floats in inc/dec statements (#1221)
902e678
Fixes #1151
thehowl
Successfully merging a pull request may close this issue.
It seems to just be missing from the type switch.
(substituting inc/dec statements with
x += 1
orx -= 1
works)The text was updated successfully, but these errors were encountered: