www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9815] New: Error on using `tupleof` with field access expression in parantheses

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

           Summary: Error on using `tupleof` with field access expression
                    in parantheses
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



09:43:10 MSK ---
---
struct S { int i; }
struct S1 { S s; }
void f(int) { }

void main()
{
    S1 s1;
    f(s1.s.tupleof); // OK
    f((s1.s).tupleof); // Error: need 'this' to access member s
}
---

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