[Issue 12221] New: Regression (2.065 git-head): hash.get() does not return proper type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 21 14:55:41 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12221
Summary: Regression (2.065 git-head): hash.get() does not
return proper type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-21 14:55:38 PST ---
-----
enum Key : short
{
a
}
void main()
{
short[short] hash;
auto a = hash.get(Key.a, Key.a);
short x = a;
}
-----
$ dmd test.d
> Error: cannot implicitly convert expression (a) of type int to short
Not sure if dupe of some of the reports in
https://d.puremagic.com/issues/show_bug.cgi?id=12167, but each issue should be
filed separately.
--
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