[fpc-devel] Is that supposed to work: property with "[var index: TFoo]" ?
genericptr at gmail.com
Thu Jun 27 23:50:32 CEST 2019
> On Jun 27, 2019, at 3:09 PM, Martin <fpc at mfriebe.de> wrote:
> The below compiles, and writes
> 1 2
> Are indexes to properties intentionally allowed to take "var param"?
> Btw it even compiles with an "out" param.
That sounds like a bug or something that should be prevented. I just found out default properties allowed overloading by accidental means so this may be another similar matter. Those should maybe be prevented also but that could break existing code.
More information about the fpc-devel