Bug 2207 – overload resolution fails with deprecation
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
All
Creation time
2008-07-09T05:05:00Z
Last change time
2014-03-01T00:36:56Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
larsivar
Comments
Comment #0 by larsivar — 2008-07-09T05:05:40Z
class Bar{
deprecated void foo(int param)
{
}
void foo(char[] param)
{
}
}
void fooBar()
{
Bar b = new Bar;
char[] str = "bar";
b.foo(str);
}
Yields
depr.d(15): function depr.Bar.foo is deprecated
This worked in DMD 1.031 and is a breaking change for Tango.