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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 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: -------