in what version? this is working for me with phobos master + DMD master as of 2016-08-20:
import std.typecons;
alias T = Tuple!(int, `foo`, int, `bar`);
enum x = T(1,2).foo;
pragma(msg, x);
Comment #2 by bastien.penavayre — 2017-05-21T17:02:52Z
This is what fails:
import std.typecons;
alias T = Tuple!(int, `foo`, int, `bar`);
enum x = T(1,2);
pragma(msg, x[0]);
Comment #3 by edi33416 — 2017-10-09T16:17:34Z
Isn't this a dmd bug?
Comment #4 by robert.schadek — 2024-12-01T16:26:07Z