digitalmars.D.bugs - [Issue 13466] New: Refused Tuple.Types syntax in some cases
- via Digitalmars-d-bugs (28/28) Sep 13 2014 https://issues.dlang.org/show_bug.cgi?id=13466
https://issues.dlang.org/show_bug.cgi?id=13466 Issue ID: 13466 Summary: Refused Tuple.Types syntax in some cases Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: bearophile_hugs eml.cc void main() { import std.typecons: Tuple, Nullable; import std.traits: TemplateArgsOf; alias NT = Nullable!(Tuple!int); alias T = TemplateArgsOf!NT[0]; pragma(msg, T); // Tuple!int alias I1 = T.Types[0]; pragma(msg, I1); // int alias I2 = TemplateArgsOf!NT[0].Types[0]; // error pragma(msg, I2); } DMD 2.067alpha gives: test.d(9,36): Error: semicolon expected to close alias declaration --
Sep 13 2014