Source file test/fixedbugs/issue22327.go

     1  // compile
     2  
     3  // Copyright 2018 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  // Using a multi-result function as an argument to
     8  // append should compile successfully. Previously there
     9  // was a missing *int -> interface{} conversion that caused
    10  // the compiler to ICE.
    11  
    12  package p
    13  
    14  func f() ([]interface{}, *int) {
    15  	return nil, nil
    16  }
    17  
    18  var _ = append(f())
    19  

View as plain text