We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce295e commit 6decd3dCopy full SHA for 6decd3d
src/reflect/all_test.go
@@ -4399,6 +4399,17 @@ func TestStructOf(t *testing.T) {
4399
})
4400
// check that type already in binary is found
4401
checkSameType(t, StructOf(fields[2:3]), struct{ Y uint64 }{})
4402
+
4403
+ // gccgo used to fail this test.
4404
+ type structFieldType interface{}
4405
+ checkSameType(t,
4406
+ StructOf([]StructField{
4407
+ StructField{
4408
+ Name: "F",
4409
+ Type: TypeOf((*structFieldType)(nil)).Elem(),
4410
+ },
4411
+ }),
4412
+ struct{ F structFieldType }{})
4413
}
4414
4415
func TestStructOfExportRules(t *testing.T) {
0 commit comments