Source file test/fixedbugs/issue47317.dir/x.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  // Issue 47317: ICE when calling ABI0 function via func value.
     6  
     7  package main
     8  
     9  func main() { F() }
    10  
    11  func F() interface{} {
    12  	g := G
    13  	g(1)
    14  	return G
    15  }
    16  
    17  func G(x int) [2]int
    18  

View as plain text