aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug289.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug289.go')
-rw-r--r--test/fixedbugs/bug289.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/fixedbugs/bug289.go b/test/fixedbugs/bug289.go
index fea6829992..7e8346ee0f 100644
--- a/test/fixedbugs/bug289.go
+++ b/test/fixedbugs/bug289.go
@@ -9,18 +9,14 @@
package main
func f1() {
- a, b := f() // ERROR "assignment mismatch|does not match|cannot initialize"
- _ = a
- _ = b
+ a, b := f() // ERROR "assignment mismatch|does not match|cannot initialize"
}
func f2() {
var a, b int
- a, b = f() // ERROR "assignment mismatch|does not match|cannot assign"
- _ = a
- _ = b
+ a, b = f() // ERROR "assignment mismatch|does not match|cannot assign"
}
func f() int {
- return 1;
+ return 1
}