Files
moxa/_test/issue-1451.go
2022-09-12 19:40:08 +02:00

20 lines
152 B
Go

package main
type t1 uint8
const (
n1 t1 = iota
n2
)
type T struct {
elem [n2 + 1]int
}
func main() {
println(len(T{}.elem))
}
// Output:
// 2