aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue22327.go
blob: 7b21d834029d843ab3df674e2d849dea378eb237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// compile

// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Using a multi-result function as an argument to
// append should compile successfully. Previously there
// was a missing *int -> interface{} conversion that caused
// the compiler to ICE.

package p

func f() ([]interface{}, *int) {
	return nil, nil
}

var _ = append(f())