diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/bug175.go | 14 | ||||
-rw-r--r-- | test/golden.out | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/fixedbugs/bug175.go b/test/fixedbugs/bug175.go new file mode 100644 index 000000000..a8f6e3ca4 --- /dev/null +++ b/test/fixedbugs/bug175.go @@ -0,0 +1,14 @@ +// errchk $G $D/$F.go + +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +func f() (int, bool) { return 0, true } + +func main() { + x, y := f(), 2; // ERROR "multi" +} + diff --git a/test/golden.out b/test/golden.out index 5c50da5a7..605a9b31a 100644 --- a/test/golden.out +++ b/test/golden.out @@ -235,3 +235,9 @@ fixedbugs/bug131.go:7: illegal types for operand: AS fixedbugs/bug133.dir/bug2.go:11: undefined: bug0.T field i fixedbugs/bug133.dir/bug2.go:11: illegal types for operand: RETURN int + +=========== fixedbugs/bug175.go +fixedbugs/bug175.go:8: use of multi func value as single value in := +fixedbugs/bug175.go:8: undefined: x +fixedbugs/bug175.go:8: illegal types for operand: AS + (int, bool) |