commit | baf289294a026ddd30c9e4341aff528084337763 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Jun 05 17:00:00 2018 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Jun 06 14:49:18 2018 +0000 |
tree | 3691c931eecef2cebe5319c840a6651e82560a25 | |
parent | 8b6c7f3f9762366bab96ea95b966e93e2593be13 [diff] |
reflect: fix StructOf hash and string Adjust the hash and string fields computed by StructOf to match the values that the compiler computes for a struct type with the same field names and types. This makes the reflect code match the compiler's Type::hash_for_method and Type::reflection methods. Fixes golang/go#25284 Change-Id: I4431709cf633bd3a500c789888bac1bd0e5426ed Reviewed-on: https://go-review.googlesource.com/116515 Reviewed-by: Than McIntosh <thanm@google.com>