[fpc-pascal] Duplicate identifier "$result"

Hairy Pixels genericptr at gmail.com
Sat Feb 25 05:37:45 CET 2023


I’m trying to build a project on Windows and I’m getting the error mentioned in the subject. It appears to be from a nested function in a generic class which is using the “result” keyword to assign the value.

Is this a bug or do I need to enable some extra compiler flag on Windows?

Here’s the compiler I’m using.

Free Pascal Compiler version 3.3.1 [2023/02/24] for i386

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list