2012-02-17 08:49:59 +04:00
|
|
|
// run
|
2010-05-01 00:27:08 +04:00
|
|
|
|
2016-04-11 00:32:26 +03:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-05-01 00:27:08 +04:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2015-07-11 02:17:11 +03:00
|
|
|
// https://golang.org/issue/662
|
2010-05-01 00:27:08 +04:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
func f() (int, int) { return 1, 2 }
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
s := fmt.Sprint(f())
|
|
|
|
if s != "1 2" { // with bug, was "{1 2}"
|
|
|
|
println("BUG")
|
|
|
|
}
|
|
|
|
}
|