October 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8826

           Summary: PostExpression cannot follow NewExpression
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: aziz.koeksal@gmail.com


--- Comment #0 from Aziz Köksal <aziz.koeksal@gmail.com> 2012-10-15 11:50:58 PDT ---
class X
{
  int a;
  this(int a)
  {}

  X opCall(X other)
  {
    return this;
  }
}

auto x = new X(3)(null); // Error: semicolon expected following auto
declaration, not '('
auto a = new X(3).a; // Error: semicolon expected following auto declaration,
not '.'

// Wrapping with parentheses works. Would be neat if this wasn't necessary.
auto a = (new X(3)).a;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8826


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-01-08 12:08:10 EST ---
*** This issue has been marked as a duplicate of issue 8635 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home