[Issue 3810] New: overloading on const does not work for methods
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 17 21:15:01 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3810
Summary: overloading on const does not work for methods
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrei at metalanguage.com
--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-02-17 21:15:00 PST ---
struct A
{
void fun() {}
void fun() const {}
T gun(T)() {}
T gun(T)() const {}
}
void main() {
A a;
const A b;
a.fun();
b.fun();
a.gun!int();
b.gun!int();
}
The code should work. It does for fun() but not fur gun().
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list