From fa32136ac0c3e3bfdb337ed727bedd7455abf68e Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 16 Aug 2021 23:26:09 -0700 Subject: Internal change. PiperOrigin-RevId: 391217339 --- tools/go_generics/rules_tests/template_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/go_generics/rules_tests') diff --git a/tools/go_generics/rules_tests/template_test.go b/tools/go_generics/rules_tests/template_test.go index b2a3446ef..6f4d140da 100644 --- a/tools/go_generics/rules_tests/template_test.go +++ b/tools/go_generics/rules_tests/template_test.go @@ -20,14 +20,16 @@ import ( ) func TestMax(t *testing.T) { - var a int = max(10, 20) + var a int + a = max(10, 20) if a != 20 { t.Errorf("Bad result of max, got %v, want %v", a, 20) } } func TestIntConst(t *testing.T) { - var a int = add(10) + var a int + a = add(10) if a != 30 { t.Errorf("Bad result of add, got %v, want %v", a, 30) } -- cgit v1.2.3