title: Delphi - How can I pass Generic parameter to function that accept Array of const parameter
body: <p>I have a 'Base class' which contain a 'function' that accept parameter of type 'Array of const' as shown below:-</p>
  
  <pre><code>type
    TBaseClass = class(TObject)
    public
      procedure NotifyAll(const AParams: array of const);
    end;
  
  procedure TBaseClass.NotifyAll(const AParams: array of const);
  begin
    // do something
  end;
  </code></pre>
  
  <p>I have another 'Generic class' that is derived from the 'base class' ( defined above )</p>
  
  <pre><code>type
    TEventMulticaster&lt;T&gt; = class(TBaseClass)
    public
      procedure Notify(AUser: T); reintroduce;
    end;
  
  procedure TEventMulticaster&lt;T&gt;.Notify(AUser: T);
  begin
    inherited NotifyAll([AUser]);   ERROR HERE
  end;
  </code></pre>
  
  <p>Every time I compile this code it gives error saying:</p>
  
  <blockquote>
    <p>Bad argument type in variable type array constructor</p>
  </blockquote>
  
  <p>What does it referring to be wrong?</p>