www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12403] New: [AA] Associative array `get` function rejects some cases

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12403

           Summary: [AA] Associative array `get` function rejects some
                    cases
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



18:04:47 MSK ---
This code used to work:
---
void main()
{
    const(int)[int] m;
    assert(m.get(0, 1) == 1);
}
---
main.d(4): Error: template object.get cannot deduce function from argument
types !()(const(int)[int], int, int), candidates are:
<druntime-root>\import\object.di(480):        object.get(K, V)(inout(V[K]) aa,
K key, lazy inout(V) defaultValue)
<druntime-root>\import\object.di(486):        object.get(K, V)(inout(V[K])* aa,
K key, lazy inout(V) defaultValue)
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12403


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com



02:21:07 EET ---
Introduced in https://github.com/D-Programming-Language/druntime/pull/733
Possibly related: Issue 12316

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 18 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12403




16:38:05 EET ---
I guess it's not related to issue 12316, because the pull that fixed it did not
fix this issue.

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