Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | 8bef7fd | 2010-02-02 15:00:13 -0800 | [diff] [blame] | 2 | |
| 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 | |
| 7 | package main |
| 8 | |
Russ Cox | 6672b40 | 2010-06-14 11:23:11 -0700 | [diff] [blame] | 9 | func f(args ...int) { |
Ian Lance Taylor | 2795b13 | 2011-03-25 18:31:55 -0700 | [diff] [blame] | 10 | g(args) |
Russ Cox | 8bef7fd | 2010-02-02 15:00:13 -0800 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | func g(args ...interface{}) { |
Ian Lance Taylor | 2795b13 | 2011-03-25 18:31:55 -0700 | [diff] [blame] | 14 | f(args) // ERROR "cannot use|incompatible" |
Russ Cox | 8bef7fd | 2010-02-02 15:00:13 -0800 | [diff] [blame] | 15 | } |