[Issue 2061] wrong vtable call with multiple interface inheritance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 24 06:46:44 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2061
schveiguy at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.029 |1.036
------- Comment #1 from schveiguy at yahoo.com 2008-11-24 08:46 -------
sheesh, I think I have messed up the example.
Please replace the definition for class E, and the main function with this:
class E(K, V) : D!(K, V)
{
int foo() {printf("foo\n"); return 0;}
int foo(int x) {printf("foo(int)\n"); return 0;}
int bar() {printf("bar\n"); return 0;}
}
void main() {
D!(uint, uint) d = new E!(uint, uint);
d.foo();
d.foo(0);
d.bar();
}
--
More information about the Digitalmars-d-bugs
mailing list