[Issue 15592] New: Template specializations don't work in nested scope
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jan 22 11:44:25 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15592
          Issue ID: 15592
           Summary: Template specializations don't work in nested scope
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: acehreli at yahoo.com
void main(){
    void foo(T)() {
    }
    void foo(T : int)() {
    }
    struct S(T) {
    }
    struct S(T : int) {
    }
}
Error: declaration foo(T : int)() is already defined
Error: declaration S(T : int) is already defined
--
    
    
More information about the Digitalmars-d-bugs
mailing list