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

           Summary: UFCS fails under a with statement block
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Rob T <[email protected]> 2013-06-12 21:40:55 PDT ---
Attempts to use UFCS as a means to externally extend classes and structs fails
when used under a with statement.

Example:

struct S
{
   void a(){ ... }
   void b(){ ... }
   void d(){ ... }
}

void c(S s){ ... }

void main()
{
  S s;
  with (s)
  {
     a;
     b;
     c; // compiler error
     d;
  }
}

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

Reply via email to