[generics] Error: Type identifier expected lazarus / 62-General ---------------------------------------------------------------------- Neuromancer · 2016-07-23 18:04 Hello, The following code fails : 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 {$mode delphi}{$H+} interface uses    Classes, SysUtils, Dictionary; type    TStringDictionary = TDictionary; implementation varCatalog : TDictionary; initializationCatalog := TDictionary.Create; finalizationCatalog.free; end.   unit2.pas(19,49) Error: Type identifier expected Should not it work in delphi mode ? ---------------------------------------------------------------------- Thaddy · 2016-07-23 18:24 It doesn't even work in Delphi itself? (I quickly tested with XE2) So? Compared to which Delphi version do you expect that code to work?