Source file test/closure5.dir/a.go

     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.
     4  
     5  // Check correctness of various closure corner cases
     6  // that are expected to be inlined
     7  
     8  package a
     9  
    10  func f() bool               { return true }
    11  func G() func() func() bool { return func() func() bool { return f } }
    12  

View as plain text