Summary: immutable return type specifier without parantheses
                    confuses the compiler
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2010-08-26 
14:15:31 PDT ---
import std.stdio;

class Test
    immutable char foo()
        return 'z';

    auto test = new Test;;

void main()

test2.d(16): Error: function () immutable is not callable using
argument types ()

Note that using const instead of immutable works.

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

Reply via email to