Initial commit: Go 1.23 release state
This commit is contained in:
15
test/fixedbugs/issue31637.dir/a.go
Normal file
15
test/fixedbugs/issue31637.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 dO struct {
|
||||
x int
|
||||
}
|
||||
|
||||
type EDO struct{}
|
||||
|
||||
func (EDO) Apply(*dO) {}
|
||||
|
||||
var X EDO
|
||||
19
test/fixedbugs/issue31637.dir/b.go
Normal file
19
test/fixedbugs/issue31637.dir/b.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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 "./a"
|
||||
|
||||
type No struct {
|
||||
a.EDO
|
||||
}
|
||||
|
||||
func X() No {
|
||||
return No{}
|
||||
}
|
||||
|
||||
func main() {
|
||||
X()
|
||||
}
|
||||
Reference in New Issue
Block a user