-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
Go version
go version go1.24.0 linux/amd64
Output of go env in your module/workspace:
.What did you do?
package main
import "fmt"
func main() {
defer foo()
panic(123)
}
func foo() {
for i := range iter {
fmt.Println(i, recover()) // 0 <nil>
}
}
func iter(yield func(int) bool) {
yield(0)
}What did you see happen?
0 <nil>
panic: 123
goroutine 1 [running]:
main.main()
What did you expect to see?
0 123
null-devjub0bs
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Projects
Status
Todo