Initial commit: Go 1.23 release state
This commit is contained in:
15
test/fixedbugs/issue29610.dir/a.go
Normal file
15
test/fixedbugs/issue29610.dir/a.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2019 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 a
|
||||
|
||||
type I interface {
|
||||
M(init bool)
|
||||
}
|
||||
|
||||
var V I
|
||||
|
||||
func init() {
|
||||
V = nil
|
||||
}
|
||||
17
test/fixedbugs/issue29610.dir/b.go
Normal file
17
test/fixedbugs/issue29610.dir/b.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2019 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 b
|
||||
|
||||
import "./a"
|
||||
|
||||
type S struct {
|
||||
a.I
|
||||
}
|
||||
|
||||
var V a.I
|
||||
|
||||
func init() {
|
||||
V = S{}
|
||||
}
|
||||
11
test/fixedbugs/issue29610.dir/main.go
Normal file
11
test/fixedbugs/issue29610.dir/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2019 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
|
||||
|
||||
import "./b"
|
||||
|
||||
var v b.S
|
||||
|
||||
func main() {}
|
||||
Reference in New Issue
Block a user