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


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2014-03-18
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


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-19
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



--- Comment #2 from Vladimir Panteleev <thecybershadow gmail.com> 2014-03-23
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