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


Masahiro Nakagawa <repeate...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |repeate...@gmail.com


--- Comment #2 from Masahiro Nakagawa <repeate...@gmail.com> 2010-05-24 
08:59:21 PDT ---
Today, I hit the similar problem.

In the latest dmd, above code works but variadic version doesn't works.

struct Foo
{
    // works! I use this for workaround
    template foo(Args...) if (true)
    {
        ref Foo foo(Args args)
        {
            return this;
        }
    }

    // doesn't work. I want use this!!
    ref Foo foo(Args...)(Args args) if (true)
    {
        return this;
    }

    // works!
    ref Foo foo(Args...)(Args args)
    {
        return this;
    }
}

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

Reply via email to