Initial commit: Go 1.23 release state
This commit is contained in:
19
test/fixedbugs/issue13777.dir/burnin.go
Normal file
19
test/fixedbugs/issue13777.dir/burnin.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package burnin
|
||||
|
||||
type sendCmdFunc func(string)
|
||||
|
||||
func sendCommand(c string) {}
|
||||
|
||||
func NewSomething() {
|
||||
// This works...
|
||||
// var sendCmd sendCmdFunc
|
||||
// sendCmd = sendCommand
|
||||
|
||||
// So does this...
|
||||
//sendCmd := sendCmdFunc(sendCommand)
|
||||
|
||||
// This fails...
|
||||
sendCmd := sendCommand
|
||||
|
||||
_ = sendCmd
|
||||
}
|
||||
11
test/fixedbugs/issue13777.dir/main.go
Normal file
11
test/fixedbugs/issue13777.dir/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// build
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
x "./burnin"
|
||||
)
|
||||
|
||||
func main() {
|
||||
x.NewSomething()
|
||||
}
|
||||
Reference in New Issue
Block a user