Initial commit: Go 1.23 release state
This commit is contained in:
29
test/fixedbugs/issue54991.go
Normal file
29
test/fixedbugs/issue54991.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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
|
||||
|
||||
import (
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
type I interface {
|
||||
M()
|
||||
}
|
||||
|
||||
type S struct{}
|
||||
|
||||
func (*S) M() {}
|
||||
|
||||
type T struct {
|
||||
I
|
||||
x atomic.Int64
|
||||
}
|
||||
|
||||
func F() {
|
||||
t := &T{I: &S{}}
|
||||
t.M()
|
||||
}
|
||||
Reference in New Issue
Block a user