[Issue 1366] New: Inconsistent __traits usage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 23 03:40:17 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1366

           Summary: Inconsistent __traits usage
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: ddparnell at bigpond.com


This works ...

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

This fails ...

  import std.stdio;
  void main(string[] pArgs)
  {
    writefln(__traits(isStaticArray, pArgs.idup));
  }

The message I get is ...

test.d(4): Error: cannot evaluate
_adDupT(&D13TypeInfo_AAxa6__initZ,(const(char)
[][])) at compile time


-- 



More information about the Digitalmars-d-bugs mailing list