When operations write their result to a non-local frame, the node level field must be set accordingly, otherwise they attempt to write in the wrong frame. Fixes #730.
17 lines
191 B
Go
17 lines
191 B
Go
package main
|
|
|
|
var optionsG map[string]string = nil
|
|
|
|
var roundG = 30
|
|
|
|
func main() {
|
|
dummy := roundG
|
|
roundG = dummy + 1
|
|
println(roundG)
|
|
println(optionsG == nil)
|
|
}
|
|
|
|
// Output:
|
|
// 31
|
|
// true
|