mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
add implementaion of array alignment in reflect
This commit is contained in:
@@ -375,6 +375,8 @@ func (t Type) Align() int {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return alignment
|
return alignment
|
||||||
|
case Array:
|
||||||
|
return t.Elem().Align()
|
||||||
default:
|
default:
|
||||||
panic("unimplemented: alignment of type")
|
panic("unimplemented: alignment of type")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user