[Issue 3265] Interface-typed function parameter does not return instance's ClassInfo
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 25 07:55:37 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3265
--- Comment #1 from HOSOKAWA Kenchi <hskwk at inter7.jp> 2009-08-25 07:55:36 PDT ---
It is not related to function argument.
This bug occured by interface reference.
Sorry for rough information.
interface I {}
class C : I {}
class D : C {}
void main() {
auto d = new D;
C c = d;
writeln(c.classinfo.name);
I i = d;
writeln(i.classinfo.name);
Object o = d;
writeln(o.classinfo.name);
}
--
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