[Issue 3625] New: Rebindable does not work with forward declarations
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Dec 17 10:30:14 PST 2009
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3625
           Summary: Rebindable does not work with forward declarations
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: michel.fortin at michelf.com
--- Comment #0 from Michel Fortin <michel.fortin at michelf.com> 2009-12-17 13:30:13 EST ---
import std.typecons;
class A {
    Rebindable!(const B) r;
}
class B {
    Rebindable!(const A) r;
}
Changing the template condition of Rebindable to use is(T == class) instead of 
is(T : Object) fixes things.
-- 
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