Parsing bug?
Basile B.
b2.temp at gmx.com
Tue Apr 28 10:35:14 UTC 2020
On Tuesday, 28 April 2020 at 07:43:13 UTC, RazvanN wrote:
> 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.
in parser.d, isParameters() does not check the attributes.
issue + patch : https://issues.dlang.org/show_bug.cgi?id=20780
More information about the Digitalmars-d
mailing list