October 15, 2012 [Issue 8826] New: PostExpression cannot follow NewExpression | ||||
---|---|---|---|---|
| ||||
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 [Issue 8826] PostExpression cannot follow NewExpression | ||||
---|---|---|---|---|
| ||||
Posted in reply to Aziz Köksal | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation