Unnoticed syntax error? lazarus / 62-General ---------------------------------------------------------------------- simone · 2023-05-23 19:55 Maybe I'm missing some syntactic nuance and I apologize if so... Why does the following code compile without errors? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program Project1;{$mode ObjFpc} type  TEnum=(aaa,bbb,ccc); function Fun:TEnum;begin  Result.:=aaa;  //Notice the dot!end; beginend. ---------------------------------------------------------------------- Bart · 2023-05-23 20:03 Nice catch. Report on bugtracker (or first ask on fpc-devel mailinglist)? Bart ---------------------------------------------------------------------- PascalDragon · 2023-05-23 20:18 Quote from: Bart on May 23, 2023, 10:03:17 pmReport on bugtracker (or first ask on fpc-devel mailinglist)? Report a bug, please. ---------------------------------------------------------------------- Bart · 2023-05-24 15:08 Reported by Simone: https://gitlab.com/freepascal.org/fpc/source/-/issues/40285. Bart