[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 20 11:10:49 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1730
--- Comment #3 from Stewart Gordon <smjg at iname.com> 2009-11-20 11:10:48 PST ---
Probably part of the same bug:
----------
class Class {
void fn1() const {
fn2();
}
void fn2() {}
}
----------
const_call.d(3): Error: function const_call.Class.fn2 () is not callable using
argument types () const
----------
This may make sense at the internal level, as trying to convert the 'this'
argument implicitly from const(Class) to Class. But as a user error message,
it's confusing.
--
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