1
0
mirror of https://github.com/golang/go synced 2024-11-27 03:21:18 -07:00
go/test/fixedbugs/issue52673.go
Cuong Manh Le 0bd7408f90 cmd/compile: fix static init of literal contains dynamic exprs
Fixes #52673

Change-Id: Ib2faa5a669c05778fc6beb38c3e63d558af9b2be
Reviewed-on: https://go-review.googlesource.com/c/go/+/403995
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
2022-05-05 01:33:11 +00:00

17 lines
325 B
Go

// compile
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package p
func f() {
var x string
func() [10][]bool {
return [10][]bool{
[]bool{bool(x < "")},
[]bool{}, []bool{}, []bool{}, []bool{}}
}()
}