Summary: pure/nothrow inference doesn't work for function
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2011-11-16 20:30:27 PST ---
void foo(X)(X x)                  

immutable void function(int) pure bar = &foo!(int);

test.d(7): Error: cannot implicitly convert expression (& foo) of type void fun
ction(int x) to immutable(void function(int) pure)

Incidentally, this code:

immutable nothrow pure bar = &foo!(int);

compiles without error, but bar isn't pure nothrow!

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to