1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Check correctness of various closure corner cases
6 // that are expected to be inlined
10 func f() bool { return true }
11 func G() func() func() bool { return func() func() bool { return f } }