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


Simen Kjaeraas <simen.kja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kja...@gmail.com


--- Comment #2 from Simen Kjaeraas <simen.kja...@gmail.com> 2012-07-24 16:08:58 
PDT ---
(In reply to comment #1)
> foreach(T arg; args) – sure about that T there?

As Nick stated in the report, it compiles under 2.059. However,

void foo(T...)(T args)
{
    foreach(T arg; args)
    {
        pragma(msg, typeof(arg));
        pragma(msg, T);
    }
}

void main()
{
    foo("", [""]);
}

Should prove that the T is being ignored in 2.059, and as such it accepts
invalid code. This is not a regression, it's a fix.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to