[Issue 12403] New: [AA] Associative array `get` function rejects some cases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 18 07:04:50 PDT 2014
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 at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at 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: -------
More information about the Digitalmars-d-bugs
mailing list