2011-03-07 17:36:17 -07:00
|
|
|
// errchk $G $D/$F.go
|
|
|
|
|
|
|
|
// Copyright 2011 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.
|
|
|
|
|
|
|
|
package p
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func f() (_ int, err error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func g() (x int, _ error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func h() (_ int, _ error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func i() (int, error) {
|
|
|
|
return // ERROR "not enough arguments to return"
|
2011-03-07 17:36:17 -07:00
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func f1() (_ int, err error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return 1, nil
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func g1() (x int, _ error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return 1, nil
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func h1() (_ int, _ error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return 1, nil
|
|
|
|
}
|
|
|
|
|
2011-11-01 20:06:05 -06:00
|
|
|
func ii() (int, error) {
|
2011-03-07 17:36:17 -07:00
|
|
|
return 1, nil
|
|
|
|
}
|