Thread overview
[Issue 13224] Error: first argument is not a symbol
Jul 29, 2014
Kenji Hara
Jul 31, 2014
Walter Bright
Jul 31, 2014
Dragos Carp
July 29, 2014
https://issues.dlang.org/show_bug.cgi?id=13224

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
In 2.066, uniform constructor syntax T() is supported for all scalar type T.

 auto n = int();
 auto x = float(3.14);
 alias P = void*;
 auto p = P(&n);

By the feature, the line

   static if (__traits(compiles, mixin("(new " ~ T.stringof ~ "())." ~ names[0]
~ "()")))

is changed to be evaluated to true when names[0] == "Node".

  (new FooTest()).Node() == Node()   (Node == Document.Node == NodeImpl*)

--
July 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13224

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
Evidently this new feature is breaking code. Sigh.

--
July 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13224

Dragos Carp <dragoscarp@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Dragos Carp <dragoscarp@gmail.com> ---
Thank you for your comments.

Set it to RESOLVED/WONTFIX:
For filtering just the function members of a Unittest class, dunit uses now
std.traits.isSomeFunction.

https://github.com/linkrope/dunit/commit/d711ec64783ed3224f5869414aaae94ba8cfdac5#diff-be2abaac367f0a0237d4cc7d9fd57a3aR691

--