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

           Summary: import inside of eponymous template does not work
                    correctly
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: jmdavisp...@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisp...@gmx.com> 2011-08-15 20:35:34 
PDT ---
This code

template eponymous(string str)
{
    import std.metastrings;

    enum eponymous = Format!("%s", str);
}

void main()
{
    pragma(msg, eponymous!("message"));
}

incorrectly prints this during compilation:

eponymous!("message")

whereas if you move the import outside of the template, it correctly prints

message

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

Reply via email to