mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
* 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
14 lines
92 B
Go
14 lines
92 B
Go
package main
|
|
|
|
var (
|
|
a = b
|
|
b = "hello"
|
|
)
|
|
|
|
func main() {
|
|
println(a)
|
|
}
|
|
|
|
// Output:
|
|
// hello
|