[Issue 8826] New: PostExpression cannot follow NewExpression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 15 11:51:05 PDT 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 at puremagic.com
ReportedBy: aziz.koeksal at gmail.com
--- Comment #0 from Aziz Köksal <aziz.koeksal at 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: -------
More information about the Digitalmars-d-bugs
mailing list