blob: 6f007fb7714eb6faad3babd3fce2eeeaa54534e0 [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Russ Cox8bef7fd2010-02-02 15:00:13 -08002
3// Copyright 2010 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 main
8
Russ Cox6672b402010-06-14 11:23:11 -07009func f(args ...int) {
Ian Lance Taylor2795b132011-03-25 18:31:55 -070010 g(args)
Russ Cox8bef7fd2010-02-02 15:00:13 -080011}
12
13func g(args ...interface{}) {
Ian Lance Taylor2795b132011-03-25 18:31:55 -070014 f(args) // ERROR "cannot use|incompatible"
Russ Cox8bef7fd2010-02-02 15:00:13 -080015}