Anders Melander 1783 Posted August 24, 2020 Can someone explain why this fails to compile with E2029 Expression expected but 'ARRAY' found: begin var Stuff: array of integer; end; while this works: type TStuff = array of integer; begin var Stuff: TStuff; var MoreStuff: TArray<integer>; end; Share this post Link to post
Anders Melander 1783 Posted August 24, 2020 Never mind. Known problem: RSP-21729: Inline var case complier error RSP-22359: Nameless types are not allowed within inline variable declarations Share this post Link to post
Fr0sT.Brutal 900 Posted August 24, 2020 Probably for the same reason why "function MyFunction(): array of Integer;" is not allowed 2 Share this post Link to post