[Issue 15726] [REG2.068.0] forward reference error for circular classes, RefCounted
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Mar  7 16:31:25 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15726
Erik Smith <erik at cruiserhouse.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erik at cruiserhouse.com
--- Comment #1 from Erik Smith <erik at cruiserhouse.com> ---
This bug also occurs in other cases where the types are not directly cross
referenced with top level aliases (see example below using same RefCounted as
in first example). This is blocking multiple design paths without a workaround.
struct Util(C,S) {}
struct Connection(T) {
    alias Util = .Util!(Connection!T, Statement!T);
}
struct Statement(T) {
    struct Payload {
        Connection!T con;
    }
    RefCounted!Payload Data;
}
Connection!int x;
--
    
    
More information about the Digitalmars-d-bugs
mailing list