Thomas Kurz via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Do., 23. Juni 2022, 19:45:
> When compiling, I get this error: > > pathfinding.pas(17,17) Error: Operator is not overloaded: "TTileSegment" = > "TTileSegment" > > Which I don't understand -- because the "=" operator is defined in > tesstypes.pas. > > Am I doing something wrong or is this behavior a bug? > 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. So you need to declare your operators as part of your record. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal