[Issue 12220] [REG2.066a] hash.get() does not accept proper parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 3 01:11:44 PST 2014


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


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |12290
            Summary|Regression (2.065           |[REG2.066a] hash.get() does
                   |git-head): hash.get() does  |not accept proper
                   |not accept proper           |parameters
                   |parameters                  |


--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-03 01:11:41 PST ---
This is git-head only issue (does not exist in 2.065 release).

The UFCS 'get' function in object module should have following signature:

inout(V) get(K, V)(inout(V[K]) aa, K key, lazy V defaultValue)
{
    auto p = key in aa;
    return p ? *p : defaultValue;
}

But current IFTI does not consider the narrowing conversion from (1) to short
during type parameters deduction.

I think that enhancement 12290 is the best way to fix issue.

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


More information about the Digitalmars-d-bugs mailing list