Parsing bug?

RazvanN razvan.nitu1305 at gmail.com
Tue Apr 28 07:43:13 UTC 2020


On Tuesday, 28 April 2020 at 07:41:28 UTC, RazvanN wrote:
> On Monday, 27 April 2020 at 22:48:46 UTC, Jean-Louis Leroy 
> wrote:
>> [...]
>
> Yes, this is a parser bug. `unittest` isn't important here (you 
> can replace unittest with a function declaration and the 
> behavior will be the same), it's the fact that you are 
> declaring a nested function which returns a template instance  
> that confuses the parser. Please file this on bugzilla.

I forgot about the UDA. It looks like the parser expects a type 
after the `(` and discovering the UDA makes it error.


More information about the Digitalmars-d mailing list