Please see the attached project. With Water 9.2.0.2167, building for Island/Linux, I get this in the build log:
MSBUILD : error E0: Internal error: Object reference not set to an instance of an object.
Test1.7z (274.2 KB)
I got this only by inserting 3 type declarations at the top of the file (in Program.pas).
The IDE does not point me to a specific line. It only says “Last build failed (1 error)”