See https://news.ycombinator.com/item?id=47391964. We should reject inlining of functions that directly call `recover()` as this changes their behavior: ``` package main //go:fix inline func handle() { recover() } func foo() { handle() // not safe to inline! } func main() { defer foo() panic("bye") } ```
See https://news.ycombinator.com/item?id=47391964.
We should reject inlining of functions that directly call
recover()as this changes their behavior: