]> Cypherpunks repositories - gostls13.git/commit
reflect: skip duplicate check in StructOf when the name of a field is "_"
authorzhouguangyuan <zhouguangyuan.xian@gmail.com>
Fri, 22 Oct 2021 09:00:46 +0000 (17:00 +0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Oct 2021 21:35:48 +0000 (21:35 +0000)
commita3c4ac0fbca51fc2e3369c93738419fc947bda77
treedcb8f1a051705c26322d8f345ab278c3b4792e51
parentde1abf76fb69739c6cad463454a55fe9c33f63ac
reflect: skip duplicate check in StructOf when the name of a field is "_"

Fixes #49110

Change-Id: I32c2cb26cca067a4a676ce4bbc3e51f1e0cdb259
Reviewed-on: https://go-review.googlesource.com/c/go/+/357959
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dan Kortschak <dan@kortschak.io>
Reviewed-by: Sebastien Binet <s@sbinet.org>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/reflect/type.go
test/fixedbugs/issue49110.go [new file with mode: 0644]