November 28, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7023

           Summary: alias to overload set in template doesn't work
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: mrmocool@gmx.de


--- Comment #0 from Trass3r <mrmocool@gmx.de> 2011-11-27 16:25:27 PST ---
template One(T)
{
    alias _One!T.foo One;
}

template _One(T)
{
    void foo(int i)    {}
    void foo(long l) {}
}

void main()
{
    long i = 5;
    One!float(555555555555555555L);
}

Error: cannot implicitly convert expression (555555555555555555L) of type long
to int

i.e. it doesn't recognize the second foo at all.
bug or feature?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 28, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7023


timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr@gmx.ch


--- Comment #1 from timon.gehr@gmx.ch 2011-11-27 17:44:58 PST ---
definitely a bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7023



--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-08 20:53:52 PST ---
Works in 2.061, at least.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home