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
15 lines
151 B
Go
15 lines
151 B
Go
package vars
|
|
|
|
var (
|
|
A = concat("hello", B)
|
|
C = D
|
|
)
|
|
|
|
func concat(a ...string) string {
|
|
var s string
|
|
for _, ss := range a {
|
|
s += ss
|
|
}
|
|
return s
|
|
}
|