Files
Marc VertesandGitHub b99bfd453f interp: fix array size definition in case of forward declared constant
In type.go, the symbol lookup on constant id was not performed. Handle
the ident kind explicitely to allow that.

Fixes #911.
2020-10-21 13:08:03 +02:00

13 lines
101 B
Go

package main
var a = [max]int{}
const max = 32
func main() {
println(len(a))
}
// Output:
// 32