From 16da71ad6b23563f3ed26f1914adf41e3d42de69 Mon Sep 17 00:00:00 2001 From: Raghavendra Nagaraj Date: Tue, 6 Nov 2018 14:31:23 +0530 Subject: [PATCH] reflect: StructOf panics when an embedded field with > 32 methods is present updating comment on funcTypeFixedXX structs --- src/reflect/type.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/reflect/type.go b/src/reflect/type.go index 6b51bf29906..5bbab79fc07 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -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