mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: fix method type string
By picking up a spurious tFlagExtraStar, the method type was printing as unc instead of func. Updates #15673 Change-Id: I0c2c189b99bdd4caeb393693be7520b8e3f342bf Reviewed-on: https://go-review.googlesource.com/23103 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
2cc0f22096
commit
0cc710dca6
2 changed files with 22 additions and 0 deletions
|
|
@ -1985,6 +1985,7 @@ func FuncOf(in, out []Type, variadic bool) Type {
|
|||
if len(args) > 50 {
|
||||
panic("reflect.FuncOf does not support more than 50 arguments")
|
||||
}
|
||||
ft.tflag = 0
|
||||
ft.hash = hash
|
||||
ft.inCount = uint16(len(in))
|
||||
ft.outCount = uint16(len(out))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue