0
Fixed

Fatal parser error

Kai Frentzel 8 years ago updated by Roman 8 years ago 3

With the current code, i got a fatal parser error:

unit Artikelmanager.OrmKonstanten;
interface
type
  TOrmFeldInfo = record
    Name: string;
    Laenge: Integer;
  end;
  KORMInfoDruckvorlage = class(TObject)
  public const
    Name: TOrmFeldInfo = (Name: string; Laenge: Integer);
  end;
  implementation
end.

Under review

Sorry for delaying the reply. But I can't compile your example with Delphi 10.1 Berlin:


[dcc32 Error] Unit1.pas(16): E2029 '(' expected but ';' found
[dcc32 Error] Unit1.pas(16): E2029 '=' expected but ')' found
[dcc32 Error] Unit1.pas(17): E2029 Expression expected but 'END' found
[dcc32 Fatal Error] Project1.dpr(5): F2063 Could not compile used unit 'Unit1.pas'


Perhaps you meant

public const
Name: TOrmFeldInfo = (Name: '1'; Laenge: 0);


Now I can reproduce the issue.

Fixed

Fixed in upcoming 2016.09 release