[Issue 2699] template functions doesn't specialize types of arguments correctly.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 19 23:36:26 PST 2012


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies at gmail.com
         Resolution|                            |INVALID


--- Comment #1 from yebblies <yebblies at gmail.com> 2012-02-20 18:36:25 EST ---
The problem is here:

void funcA( T: T[] )( T[] t )

Calling with an int[] parameter infers T to be int, which does _not_ fit the
specialization.

void funcA( T: U[], U )( T t )
works.

-- 
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