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

           Summary: Position rigidity of @system for delegates
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-09-08 04:32:44 PDT ---
void main() {
    auto f1 = cast(int delegate(int) @system)(int x){ return 0; }; // OK
    auto f2 = cast(@system int delegate(int))(int x){ return 0; }; // Error
}


DMD 2.055:

test.d(3): basic type expected, not @
test.d(3): found '@' when expecting ')'
test.d(3): semicolon expected following auto declaration, not 'int'
test.d(3): no identifier for declarator int delegate(int)
test.d(3): semicolon expected, not ')'
test.d(3): found ')' instead of statement
test.d(4): unrecognized declaration

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to