[Issue 9954] New: Runtime wrong code with global interface var	created in CTFE
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Apr 18 04:06:17 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9954
           Summary: Runtime wrong code with global interface var created
                    in CTFE
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2013-04-18 04:06:16 PDT ---
interface ITest105a {
    string test105a() const;
}
class Test105a: ITest105a {
    string test105a() const {return "test105a";}
}
interface ITest105b {
    string test105b() const;
}
class Test105b: Test105a, ITest105b {
    string test105b() const {return "test105b";}
}
ITest105a makeit() {
    return new Test105b;
}
const ITest105a t105ia = makeit();
void main() {
    assert(t105ia.test105a() == "test105a");
}
---
The bug is that t105ia is being created pointing to the Test105a part, instead
of pointing to Test105b.
-- 
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