1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:20:13 -06:00

reflect: StructOf panics when an embedded field with > 32 methods is present

updating comment on funcTypeFixedXX structs
This commit is contained in:
Raghavendra Nagaraj 2018-11-06 14:31:23 +05:30
parent b45db110c0
commit 16da71ad6b

View File

@ -1889,9 +1889,8 @@ func MapOf(key, elem Type) Type {
return ti.(Type)
}
// TODO(crawshaw): as these structTypeFixedN and funcTypeFixedN structs
// have no methods, they could be defined at runtime using the StructOf
// function.
// TODO(crawshaw): as these funcTypeFixedN structs have no methods,
// they could be defined at runtime using the StructOf function.
type funcTypeFixed4 struct {
funcType
args [4]*rtype