- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for AmbiguousField (0.17 sec)
-
src/encoding/json/encode_test.go
}{{ // Both S1 and S2 have a field named X. From the perspective of S, // it is ambiguous which one X refers to. // This should not serialize either field. CaseName: Name("AmbiguousField"), makeInput: func() any { type ( S1 struct{ x, X int } S2 struct{ x, X int } S struct { S1 S2 } ) return S{S1{1, 2}, S2{3, 4}} },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0)