[Issue 1570] New: Wrong return for address operator
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Oct 11 00:23:04 PDT 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1570
           Summary: Wrong return for address operator
           Product: D
           Version: 2.005
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: PetSerAl at gmail.com
import std.stdio;
void main()
{ 
        b v=new b;
        v.f;
        v.a.f;
        (&v.f)();
        (&v.a.f)();
} 
class a
{
        void f()
        {
                writeln("class a");
        }
}
class b:a
{
        void f()
        {
                writeln("class b");
        }
}
This program write:
class b
class a
class b
class b
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list