fix: re-apply GTA until all global types/constants are defined

This commit is contained in:
Marc Vertes
2020-02-20 12:44:04 +01:00
committed by GitHub
parent 7037424edf
commit 27520f6dae
13 changed files with 130 additions and 25 deletions

17
_test/const10.go Normal file
View File

@@ -0,0 +1,17 @@
package main
const (
a = 2
b = c + d
c = a + d
d = e + f
e = 3
f = 4
)
func main() {
println(b)
}
// Output:
// 16