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

           Summary: Const/immutable should not matter for value types in
                    IFTI
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: dsim...@yahoo.com


void main() {
    immutable uint a;
    uint b;
    foo(a, b);
}

void foo(T)(T lhs, T rhs) {}

Compile time errors:

template test6.foo(T) does not match any function template declaration
template test6.foo(T) cannot deduce template function from argument types
!()(immutable(uint),uint)|


-- 

Reply via email to