Initial commit: Go 1.23 release state
This commit is contained in:
24
test/fixedbugs/issue10219.dir/a.go
Normal file
24
test/fixedbugs/issue10219.dir/a.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright 2015 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 m struct {
|
||||
S string
|
||||
}
|
||||
|
||||
var g = struct {
|
||||
m
|
||||
P string
|
||||
}{
|
||||
m{"a"},
|
||||
"",
|
||||
}
|
||||
|
||||
type S struct{}
|
||||
|
||||
func (s *S) M(p string) {
|
||||
r := g
|
||||
r.P = p
|
||||
}
|
||||
11
test/fixedbugs/issue10219.dir/b.go
Normal file
11
test/fixedbugs/issue10219.dir/b.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2015 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"
|
||||
|
||||
func F() *a.S {
|
||||
return &a.S{}
|
||||
}
|
||||
12
test/fixedbugs/issue10219.dir/c.go
Normal file
12
test/fixedbugs/issue10219.dir/c.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2015 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 c
|
||||
|
||||
import "./b"
|
||||
|
||||
func F() {
|
||||
s := b.F()
|
||||
s.M("c")
|
||||
}
|
||||
Reference in New Issue
Block a user