2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2010-02-02 16:00:13 -07:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-02-02 16:00:13 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2010-06-14 12:23:11 -06:00
|
|
|
func f(args ...int) {
|
2011-03-25 19:31:55 -06:00
|
|
|
g(args)
|
2010-02-02 16:00:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func g(args ...interface{}) {
|
2011-03-25 19:31:55 -06:00
|
|
|
f(args) // ERROR "cannot use|incompatible"
|
2010-02-02 16:00:13 -07:00
|
|
|
}
|