Source file test/fixedbugs/issue22326.go

     1  // run
     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 main
     8  
     9  var (
    10  	_ = d
    11  	_ = f("_", c, b)
    12  	a = f("a")
    13  	b = f("b")
    14  	c = f("c")
    15  	d = f("d")
    16  )
    17  
    18  func f(s string, rest ...int) int {
    19  	print(s)
    20  	return 0
    21  }
    22  
    23  func main() {
    24  	println()
    25  }
    26  

View as plain text