It looks the following code will be rewritten badly, but no ways to avoid it? If this is true, maybe the blog article should mention this. package main //go:fix inline func handle() { recover() } func foo() { handle() } func main() { defer foo() panic("bye") }
Thanks, that's a bug. We should never inline a function that directly calls recover. I've filed https://go.dev/issue/78193.