www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9274] New: is + alias this = wrong code

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

           Summary: is + alias this = wrong code
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zheny list.ru



struct OhWhy(S) {
   S[] arr;
   alias arr this;
}

void main() {
    static assert(!is(OhWhy!float unused == T[],T));/*fails,but shouldn't
since struct OhWhy isn't an array */
}

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