Skip to content

In fcl-passrc, TPasElement.GetDeclaration does not display the length of short strings

As in title. For example, the declarations in the following program:

unit test;
{$mode objfpc}{$H+}

interface

var
  X : string[10];

type
  Tx = string[5];

implementation

end.

are shown as follows:

X : string
Tx = string

See program in the attached archive to reproduce. test.zip

Edited by Sven/Sarah Barth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information