> On Jul 6, 2019, at 12:14 PM, Michael Van Canneyt <mich...@freepascal.org> > wrote: > > Why should this declaration not be allowed ? > > Only the first GetValue() should be called, of course. > > i.e. statement 1: > A:=Values[MyVariant] > must work > > but e.g. statement 2: > A:=Values[MyVariant1,MyVariant2] > must not work. > > Only if overloaded array properties are allowed > property Values[key: variant]: TJSON read GetValue; default; > property Values[key1,key2: variant]: TJSON read GetValue; default; > may the second statement be accepted.
Yeah that’s correct. Here’s my bug report: https://bugs.freepascal.org/view.php?id=35809 Regards, Ryan Joseph _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel