<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<a class="moz-txt-link-freetext" href="https://gitlab.com/freepascal.org/fpc/source/-/work_items/41642#note_3135425124">https://gitlab.com/freepascal.org/fpc/source/-/work_items/41642#note_3135425124</a><br>
    <blockquote type="cite">That's actually a FPC compiler bug:
      <pre class="code highlight" lang="plaintext"><span>    procedure WriteProperty(Path: String; Instance: TObject;</span>
<span>                            PropInfo: Pointer; DefInstance: TObject = nil;</span>
<span>                            const OnlyProperty: array of String);</span>
</pre>
    </blockquote>
    <br>
    <br>
    then what is the correct syntax?<br>
    <br>
    The link suggests there needs to be a default value for OnlyProperty
    (and I would have expected that too).<br>
    <br>
    But FPC does reject *any* default. It reject the = sign itself, if
    any is added.<br>
    <br>
    So what is the correct syntax?<br>
    <br>
  </body>
</html>