-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
I4No visible changesNo visible changesS4RoutineRoutineU2Seriously plannedSeriously plannedbugSomething isn't workingSomething isn't workingcompilerGo smart contract compilerGo smart contract compiler
Milestone
Description
Another hour of debug.
Current Behavior
arr := []byte{1, 0}
arr[0], arr[1] = arr[1], arr[0]
compiles ok. I get {0, 0}
Expected Behavior
... but want to get {0, 1}
Possible Solution
- Do not allow such code
- Make swap with the third var as it is done in many languages (e.g. go)
Steps to Reproduce
Code from Current Behavior
Context
Regression
Not sure
Your Environment
github.com/nspcc-dev/neo-go v0.106.3
Metadata
Metadata
Assignees
Labels
I4No visible changesNo visible changesS4RoutineRoutineU2Seriously plannedSeriously plannedbugSomething isn't workingSomething isn't workingcompilerGo smart contract compilerGo smart contract compiler