http://d.puremagic.com/issues/show_bug.cgi?id=4161
Summary: @disable after function signature has no effect Product: D Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k-fo...@onu.edu --- Comment #0 from Kyle Foley <k-fo...@onu.edu> 2010-05-05 15:08:01 PDT --- DMD 2.045 int main(string[] args) { void func() @disable {} func(); return 0; } --- This compiles without any problems. I don't know whether this should mark the function as @disabled or whether it should flag a compile error for misusing @disable. Regardless, I don't think it should accept this code. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------