Source file test/fixedbugs/issue52841.go

     1  // compile
     2  
     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.
     6  
     7  // Issue 52841: gofrontend crashed writing export data
     8  
     9  package p
    10  
    11  func F() {
    12  	x := ([17][1]interface {
    13  		Method9()
    14  		Method10()
    15  	}{
    16  		func() (V47 [1]interface {
    17  			Method9()
    18  			Method10()
    19  		}) {
    20  			return
    21  		}(),
    22  		func(V48 string) (V49 [1]interface {
    23  			Method9()
    24  			Method10()
    25  		}) {
    26  			return
    27  		}("440"),
    28  	})
    29  	_ = x
    30  }
    31  

View as plain text