2012-02-17 04:49:59 +00:00
|
|
|
// errorcheck
|
2010-02-02 23:00:13 +00:00
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-02-02 23:00:13 +00: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 18:23:11 +00:00
|
|
|
func f(args ...int) {
|
2011-03-26 01:31:55 +00:00
|
|
|
g(args)
|
2010-02-02 23:00:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func g(args ...interface{}) {
|
2011-03-26 01:31:55 +00:00
|
|
|
f(args) // ERROR "cannot use|incompatible"
|
2010-02-02 23:00:13 +00:00
|
|
|
}
|