Russ Cox | 2b1c9b4 | 2012-02-16 23:49:30 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | a587d9a | 2009-07-27 16:59:10 -0700 | [diff] [blame] | 2 | |
| 3 | // Copyright 2009 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 | |
| 9 | func f() (int, bool) { return 0, true } |
| 10 | |
| 11 | func main() { |
| 12 | x, y := f(), 2; // ERROR "multi" |
Ian Lance Taylor | 387e7c2 | 2012-01-22 11:50:45 -0800 | [diff] [blame] | 13 | _, _ = x, y |
Russ Cox | a587d9a | 2009-07-27 16:59:10 -0700 | [diff] [blame] | 14 | } |