Fatal parser error

Hi,

If have some old code:
var
  SettingFile: File of TSettingRecord; 
  settings: TSettingRecord;
begin
  AssignFile( File(SettingFile), filename);
  Read(SettingFile, settings);
  CloseFile(settingFile);

  Typecast File(SettingFile) causes Fatal Parser Error 

Hi Mika,

Thanks for letting me know. This will be fixed in the next update.

But I just wonder what is the purpose of this typecast? :)

Thanks,
At least delphi 2007 complains  

E2250 There is no overloaded version of 'AssignFile' that can be called with these arguments

Sorry - 
I just realized that there exists external AssignFile on one 3rd party unit 


Odd..
Anyway, if it compiles, FixInsight should be able to parse it. I will fix this.