Files
Nicholas WiersmaandGitHub 86de5c77ae fix: execute global variables in the correct order
* fix: constant definition loop on out of order vars

* fix: do not wire global varDecl

* fix: wire and execute global vars

* chore: add tests

* fix: refactor and lint
2020-07-09 14:05:03 +02:00

14 lines
92 B
Go

package main
var (
a = b
b = "hello"
)
func main() {
println(a)
}
// Output:
// hello