cannot use UDA with same name as one of field's name

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 23 16:14:15 PDT 2015


On 6/23/15 7:00 PM, sigod wrote:
> On Tuesday, 23 June 2015 at 22:10:43 UTC, Steven Schveighoffer wrote:
>> You can use @full.path.name
>
> ```
> Error: unexpected ( in declarator
> Error: basic type expected, not "_id"
> Error: found '"_id"' when expecting ')'
> Error: no identifier for declarator .data.serialization.name(int)
> Error: semicolon expected following function declaration
> Error: declaration expected, not ')'
> ```

I'm not completely sure on the syntax, try adding some parens.

-Steve


More information about the Digitalmars-d-learn mailing list