www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10655] New: Error: recursive alias declaration

http://d.puremagic.com/issues/show_bug.cgi?id=10655

           Summary: Error: recursive alias declaration
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com



----
//OK:
alias T=typeof(x);
T x0;
 property auto x(){
  return 1.1;
}

//NG:
struct A{
  alias T=typeof(x); //Error: alias main.A.T recursive alias declaration
  T x0;
   property auto x(){
    return 1.1;
  }
}
----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 16 2013