Source file test/fixedbugs/issue31010.go

     1  // compile
     2  
     3  // Copyright 2019 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  package p
     8  
     9  var (
    10  	x  int
    11  	xs []int
    12  )
    13  
    14  func a([]int) (int, error)
    15  
    16  func b() (int, error) {
    17  	return a(append(xs, x))
    18  }
    19  
    20  func c(int, error) (int, error)
    21  
    22  func d() (int, error) {
    23  	return c(b())
    24  }
    25  

View as plain text