http://d.puremagic.com/issues/show_bug.cgi?id=10484
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Kenji Hara <[email protected]> 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: -------
