[Issue 465] New: errors when trying to use static templated methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 27 15:56:10 PDT 2006


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

           Summary: errors when trying to use static templated methods
           Product: D
           Version: 0.172
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: h3r3tic at mat.uni.torun.pl


struct Foo {
        static void func(T)(T a) {
        }
}

void main() {
        Foo.init.func(1);               // ok
        Foo.init.func!(int)(1); // template func!(int) is not a member of Foo
        Foo.func(1);                    // type Foo is not an expression
        Foo.func!(int)(1);              // template func!(int) is not a member
of Foo
}


-- 




More information about the Digitalmars-d-bugs mailing list