[Issue 6623] New: Position rigidity of @system for delegates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 8 04:32:58 PDT 2011
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list