[Issue 775] New: array literals can't be used as template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 30 05:50:46 PST 2006


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

           Summary: array literals can't be used as template arguments
           Product: D
           Version: 0.178
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


Error: expression ["abc2","def"] is not a valid template value argument:
#
# template A(T ...) { }
# mixin A!(["abc2", "def"]);
#

mixin B!(["abc2","def"]) does not match any template declaration:
#
# template B(alias T) {}
# mixin B!(["abc2", "def"]);
#


-- 



More information about the Digitalmars-d-bugs mailing list