3 // Copyright 2022 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // The inliner would erroneously scan the caller function's body for
8 // reassignments *before* substituting the inlined function call body,
9 // which could cause false positives in deciding when it's safe to
10 // transitively inline indirect function calls.
25 func bug2(fn func()) {
31 func fail() { panic("FAIL") }