aboutsummaryrefslogtreecommitdiff
path: root/test/typeparam/pair.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeparam/pair.go')
-rw-r--r--test/typeparam/pair.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/typeparam/pair.go b/test/typeparam/pair.go
index 7faf083c89..c1427b9c52 100644
--- a/test/typeparam/pair.go
+++ b/test/typeparam/pair.go
@@ -24,7 +24,11 @@ func main() {
if got, want := unsafe.Sizeof(p.f2), uintptr(8); got != want {
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}))