add implementaion of array alignment in reflect

This commit is contained in:
Jaden Weiss
2019-10-24 10:28:59 -04:00
committed by Ayke
parent 6b1faeb882
commit 4339cbd56f
+2
View File
@@ -375,6 +375,8 @@ func (t Type) Align() int {
}
}
return alignment
case Array:
return t.Elem().Align()
default:
panic("unimplemented: alignment of type")
}