[Issue 1366] Inconsistent __traits usage

2011-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1366


Don  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Don  2011-04-15 21:19:08 PDT ---
This is one of at least 8 bugs fixed by this commit:
https://github.com/donc/dmd/commit/fc67046cf1e66182d959309fb15ef9e2d4c266b9

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1366] Inconsistent __traits usage

2010-02-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1366


Hoenir  changed:

   What|Removed |Added

 CC||mrmoc...@gmx.de


--- Comment #1 from Hoenir  2010-02-04 19:39:44 PST ---
Error message has changed.

import std.stdio;
void main(string[] pArgs)
{
auto x = pArgs.idup;
writeln(__traits(isStaticArray,x));
}

works, but

void main(string[] pArgs)
{
writeln(__traits(isStaticArray, pArgs.idup));
}

yields

Error: Cannot interpret string[] at compile time now

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---