> On Apr 9, 2021, at 4:31 PM, Sven Barth via fpc-devel 
> <fpc-devel@lists.freepascal.org> wrote:
> 
> You mean what you did for is_array_literal? A pure array constructor can be 
> found with is_array_constructor, though it might be better to use 
> is_open_array, cause someone might pass an open array parameter to a generic 
> function (those will be unnamed as well).

Maybe the email didn't go through? How to identify this "array of const 
constructor" type. I want to reject these for implicit specialization but I 
can't identity them.

 DoThis([
   1,
   'string',
   'c',
   TObject.Create
 ])
Regards,
        Ryan Joseph

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to