strict private / nested types visibility issue
Original Reporter info from Mantis: Giel
-
Reporter name:
Original Reporter info from Mantis: Giel
- Reporter name:
Description:
These two similar program (see steps) won't compile. I'm pretty sure this worked two months ago.
Using yesterday's build.
Steps to reproduce:
program Project1;
{$mode delphi}{$H+}
type
TFoo = class
strict private //works if "strict" removed
const
n = 3;
strict private
x: array[0..1] of record //works if "array[0..1] of" removed
y: array[0..n] of integer; //Error: Identifier not found "N"
end;
end;
begin
TFoo.Create;
end.
program Project1;
{$mode delphi}{$H+}
type
TFoo = class
strict private //works if "strict" removed
type
TBar = (one, two);
strict private
x: array of record //works if "array of" removed
y: array[TBar] of integer; //Error: Identifier not found "N"
end;
end;
begin
TFoo.Create;
end.
Mantis conversion info:
- Mantis ID: 18767
- OS: win64
- Fixed in version: 3.0.0
- Fixed in revision: 18999 (#dd5aa125)