digitalmars.D.bugs - [Issue 10795] New: Bad return type of ParameterIdentifierTuple if there is no arguments
- d-bugmail puremagic.com (27/27) Aug 11 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10795
- d-bugmail puremagic.com (22/22) Aug 29 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10795
- d-bugmail puremagic.com (11/11) Aug 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10795
http://d.puremagic.com/issues/show_bug.cgi?id=10795 Summary: Bad return type of ParameterIdentifierTuple if there is no arguments Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: temtaime gmail.com import std.stdio; import std.traits; void foo() { } void main() { enum arr = [ ParameterIdentifierTuple!foo ]; writeln(typeof(arr).stringof); } Prints: void[] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 11 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10795 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies gmail.com What would you expect it to be? It expands to: import std.stdio; import std.traits; void foo() { } void main() { enum arr = [ ]; writeln(typeof(arr).stringof); } And arr is correctly inferred to have a type of void[] (the type of the literal []). There are no expressions the the result of ParameterIdentifierTuple to infer any other type from. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 29 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10795 Temtaime <temtaime gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID Sorry, seems to be my mistake. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 30 2013