diff options
Diffstat (limited to 'test/typeparam/pair.go')
-rw-r--r-- | test/typeparam/pair.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/typeparam/pair.go b/test/typeparam/pair.go index 57742022b1..c1427b9c52 100644 --- a/test/typeparam/pair.go +++ b/test/typeparam/pair.go @@ -25,7 +25,10 @@ func main() { panic(fmt.Sprintf("unexpected f2 size == %d, want %d", got, want)) } - type mypair struct { f1 int32; f2 int64 } + type mypair struct { + f1 int32 + f2 int64 + } mp := mypair(p) if mp.f1 != 1 || mp.f2 != 2 { panic(fmt.Sprintf("mp == %#v, want %#v", mp, mypair{1, 2})) |