UDA on double nested struct
Sebastiaan Koppe
mail at skoppe.eu
Mon Aug 20 17:01:49 UTC 2018
On Monday, 20 August 2018 at 16:27:55 UTC, Basile B. wrote:
> Hello, it works fine here. Maybe there was another error that
> you removed when you have minimized the example. See
> https://run.dlang.io/is/ZrW7kI, that says that the example
> works since 2.068.2. Although that are are possibility that it
> was broken before a patch release, since only latest path of a
> minor release is tested on the site, in which case updating the
> compiler would fix the issue.
Wow, that is really nice, running all compilers at once. Thanks
for showing that.
Anyway, I found out that the problem was that the `Hover` struct
was named `hover` in my code. See https://run.dlang.io/is/3dLli6
In that case the inner hover takes precedence over the enum
hover. Is that wanted behaviour? I would at minimum expect an
ambiguity error.
More information about the Digitalmars-d-learn
mailing list