1// errorcheck
2
3// Copyright 2011 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
7package p
8
9func f() (_ int, err error) {
10	return
11}
12
13func g() (x int, _ error) {
14	return
15}
16
17func h() (_ int, _ error) {
18	return
19}
20
21func i() (int, error) {
22	return // ERROR "not enough return values|not enough arguments to return"
23}
24
25func f1() (_ int, err error) {
26	return 1, nil
27}
28
29func g1() (x int, _ error) {
30	return 1, nil
31}
32
33func h1() (_ int, _ error) {
34	return 1, nil
35}
36
37func ii() (int, error) {
38	return 1, nil
39}
40