blob: 5fca4b22bc5539ba3f91f580d232aacab90292a5 [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// errorcheck
Russ Coxa587d9a2009-07-27 16:59:10 -07002
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
7package main
8
9func f() (int, bool) { return 0, true }
10
11func main() {
12 x, y := f(), 2; // ERROR "multi"
Ian Lance Taylor387e7c22012-01-22 11:50:45 -080013 _, _ = x, y
Russ Coxa587d9a2009-07-27 16:59:10 -070014}