Source file test/closure5.dir/main.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  package main
     8  
     9  import "./a"
    10  
    11  func main() {
    12  	if !a.G()()() {
    13  		panic("FAIL")
    14  	}
    15  }
    16  

View as plain text