[Issue 10484] [2.064alpha]8635:postfix expressions for new without parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 27 03:18:15 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10484
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-06-27 03:18:13 PDT ---
(In reply to comment #0)
> void main() {
> auto a1 = (new Object()).toString; // OK
> auto a2 = (new Object).toString; // OK
>
> auto b1 = new Object().toString; // 2.064 OK
> auto b2 = new Object.toString; // error
> }
>
> Enhance 8635 allows b1.
> So I think b2 should also be allowed.
Enhance 8635 does not support it.
http://dlang.org/expression#PrimaryExpression
http://dlang.org/expression#NewExpressionWithArgs
In the last line, `new Object` does not match NewExpressionWithArgs.
--
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