<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Thomas Kurz via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Do., 23. Juni 2022, 19:45:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When compiling, I get this error:<br>
<br>
pathfinding.pas(17,17) Error: Operator is not overloaded: "TTileSegment" = "TTileSegment"<br>
<br>
Which I don't understand -- because the "=" operator is defined in tesstypes.pas.<br>
<br>
Am I doing something wrong or is this behavior a bug?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Global operator overloads need to be available at the time the generic is *declared*, not *specialized*. That is one of the reasons why advanced records were introduced.</div><div dir="auto"><br></div><div dir="auto">So you need to declare your operators as part of your record. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>