- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SimpleStruct (0.1 sec)
-
test/fixedbugs/issue33062.go
// Issue 33062: gccgo generates incorrect type equality // functions. package main type simpleStruct struct { int string } type complexStruct struct { int simpleStruct } func main() { x := complexStruct{1, simpleStruct{2, "xxx"}} ix := interface{}(x) y := complexStruct{1, simpleStruct{2, "yyy"}} iy := interface{}(y) if ix != ix { panic("FAIL") } if ix == iy {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 11 22:30:42 UTC 2019 - 568 bytes - Viewed (0) -
src/reflect/visiblefields_test.go
"strings" "testing" ) type structField struct { name string index []int } var fieldsTests = []struct { testName string val any expect []structField }{{ testName: "SimpleStruct", val: struct { A int B string C bool }{}, expect: []structField{{ name: "A", index: []int{0}, }, { name: "B", index: []int{1}, }, { name: "C", index: []int{2},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 08 13:44:41 UTC 2022 - 5.3K bytes - Viewed (0)