IEquatable, Custom comparer, code generation error. Think, not generate op_Equality method.
General Unity version: 2023.2.11f1 Fish-Networking version: 4.1.2r Discord link: https://discordapp.com/channels/424284635074134018/1034477094731784302/1219792230995464222
Description I try make custom comparer for IEquatable inherited struct, but unity throw error: (0,0): error - Type NetworkGuid implements IEquatable but the comparer method could not be found.
Replication Steps to reproduce the behavior:
- Make struct inherited by IEquatable
- Make custom comparer by attribute
- Make CSP with reconcile and replicate with that struct
- See error
Expected behavior Unity not throw error, Custom comparer created
Screenshots
Minds
After a little code reverse I noticed the search method "op_Equality"
MethodDefinition cMd = tr.CachedResolve(base.Session).GetMethod("op_Equality");
but there it method don't can be founded, i try to see cache for this "tr" and I also didn’t find the generated method, i think it may'be not generated/not cached, because if i add method "op_Equality" manualy, unity not throw error.
Can you please post the code as text. Don't forget the code tag above this write box.
Queued to close in 2 weeks if there is no new activity.