[Issue 13466] New: Refused Tuple.Types syntax in some cases
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Sep 13 08:58:24 PDT 2014
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 at puremagic.com
Reporter: bearophile_hugs at 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
--
More information about the Digitalmars-d-bugs
mailing list