[Issue 10795] Bad return type of ParameterIdentifierTuple if there is no arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 29 05:37:39 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10795


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #1 from yebblies <yebblies at gmail.com> 2013-08-29 22:37:38 EST ---
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: -------


More information about the Digitalmars-d-bugs mailing list