Initial commit: Go 1.23 release state
This commit is contained in:
31
test/fixedbugs/issue66575.go
Normal file
31
test/fixedbugs/issue66575.go
Normal file
@@ -0,0 +1,31 @@
|
||||
// run
|
||||
|
||||
// Copyright 2024 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 main
|
||||
|
||||
var (
|
||||
v0 = initv0()
|
||||
v1 = initv1()
|
||||
)
|
||||
|
||||
const c = "c"
|
||||
|
||||
func initv0() string {
|
||||
println("initv0")
|
||||
if c != "" { // have a dependency on c
|
||||
return ""
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func initv1() string {
|
||||
println("initv1")
|
||||
return ""
|
||||
}
|
||||
|
||||
func main() {
|
||||
// do nothing
|
||||
}
|
||||
Reference in New Issue
Block a user