[Issue 15740] Indexing a std.typecons.Tuple with names doesn't work in ctfe

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 21 10:02:52 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=15740

bastien penavayre <bastien.penavayre at epitech.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bastien.penavayre at epitech.e
                   |                            |u

--- Comment #2 from bastien penavayre <bastien.penavayre at epitech.eu> ---
This is what fails:

import std.typecons;
alias T = Tuple!(int, `foo`, int, `bar`);
enum x = T(1,2);
pragma(msg, x[0]);

--


More information about the Digitalmars-d-bugs mailing list