mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
In type.go, the symbol lookup on constant id was not performed. Handle the ident kind explicitely to allow that. Fixes #911.
13 lines
101 B
Go
13 lines
101 B
Go
package main
|
|
|
|
var a = [max]int{}
|
|
|
|
const max = 32
|
|
|
|
func main() {
|
|
println(len(a))
|
|
}
|
|
|
|
// Output:
|
|
// 32
|