Initial commit: Go 1.23 release state
This commit is contained in:
13
test/fixedbugs/issue43551.dir/a.go
Normal file
13
test/fixedbugs/issue43551.dir/a.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package a
|
||||
|
||||
type S struct {
|
||||
a Key
|
||||
}
|
||||
|
||||
func (s S) A() Key {
|
||||
return s.a
|
||||
}
|
||||
|
||||
type Key struct {
|
||||
key int64
|
||||
}
|
||||
14
test/fixedbugs/issue43551.dir/b.go
Normal file
14
test/fixedbugs/issue43551.dir/b.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 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 a.S
|
||||
type Key a.Key
|
||||
|
||||
func (s S) A() Key {
|
||||
return Key(a.S(s).A())
|
||||
}
|
||||
Reference in New Issue
Block a user