fix: re-apply GTA until all global types/constants are defined
This commit is contained in:
17
_test/const10.go
Normal file
17
_test/const10.go
Normal 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
|
||||
Reference in New Issue
Block a user