<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Nov 8, 2018 at 1:13 AM silvioprog <<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 11:06 PM Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com" target="_blank">ryan@thealchemistguild.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I read the old thread and we need to add {$modeswitch arrayoperators} to make it work. a += [4] does work now.<br>
<br>
Also I found the thread where Sven said he fixed the "Incompatible types: got "Set Of Byte” bug in r39554 (<a href="https://bugs.freepascal.org/view.php?id=34021" rel="noreferrer" target="_blank">https://bugs.freepascal.org/view.php?id=34021</a>). It is indeed fixed but only for + operators.<br>
<br>
Do you want me to file a new bug report for := operators?</blockquote><div><br></div><div>You can temporary solve it by specializing a generic array:</div></div></div></div></blockquote></div><div><br></div><div>... or forcing the compiler to get the correct type by cast:</div><div><br></div><div><div>type</div><div> TIntArray = array of integer;</div><div><br></div><div>...</div><div><br></div><div>var</div><div> r: TMyRec;</div><div>begin</div><div> r := TIntArray([1, 2, 3]);</div></div><div>...</div><div><br></div>--<br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div>