https://d.puremagic.com/issues/show_bug.cgi?id=12542



--- Comment #1 from Kenji Hara <[email protected]> 2014-04-08 01:13:13 PDT ---
(In reply to comment #0)
> //----
> int logOf(int n)
> {
>     if (n)
>         return 1 + logOf(n/2);
>     return 0;
> }
> 
> void main() @safe nothrow pure 
> {
>     int log = logOf(9);
> }

For attribute inference, logOf should be template function.

https://github.com/D-Programming-Language/dmd/pull/3436

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

Reply via email to