summaryrefslogtreecommitdiff
path: root/test/decl.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/decl.go')
-rw-r--r--test/decl.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/decl.go b/test/decl.go
index 273d0ecff..6e8cbab20 100644
--- a/test/decl.go
+++ b/test/decl.go
@@ -14,6 +14,7 @@ func f3() (float, int, string) { return 1, 2, "3" }
func x() (s string) {
a, b, s := f3();
+ _, _ = a, b;
return // tests that result var is in scope for redeclaration
}