[Issue 2279] New: alias within function template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 12 07:16:14 PDT 2008


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

           Summary: alias within function template
           Product: D
           Version: 1.034
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: Daniel919 at web.de


template Test(T) { alias int V; void test(T t) {} }
Test!(int).test(0); //OK

template test(T) { alias int V; void test(T t) {} }
test!(int)(0); //Error
test(0) //Error

template test(T) { void test(T t) {} }
test!(int)(0); //OK
test(0); //OK


-- 



More information about the Digitalmars-d-bugs mailing list