[Issue 3065] New: error: this for variable needs to be Type not Type!(arguments).Type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 11 16:31:05 PDT 2009


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

           Summary: error: this for variable needs to be Type not
                    Type!(arguments).Type
           Product: D
           Version: 1.045
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dhasenan at gmail.com


This message is vague because it does not include any template parameters the
type may have. It is especially galling because the arguments are included in
the second part and not the first.

One fix is expression.c:270, check if ad->type is null. If it is, use the
current code. Otherwise, use ad->type->toChars rather that ad->toChars.

The other fix is to have AggregateDeclaration::toChars return type->toChars if
type is not null.

Since the latter is more general, I favor it.

-- 
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