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: nob...@puremagic.com ReportedBy: aziz.koek...@gmail.com --- Comment #0 from Aziz K�ksal <aziz.koek...@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: -------