digitalmars.D.bugs - [Issue 12050] New: in does not work as storage class where const scope does
- d-bugmail puremagic.com (30/30) Jan 31 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12050
- d-bugmail puremagic.com (7/7) Jan 31 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12050
https://d.puremagic.com/issues/show_bug.cgi?id=12050 Summary: in does not work as storage class where const scope does Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rswhite4 googlemail.com ---- void main() { scope const int[] arr = new int[100]; } ---- Compiles but: ---- void main() { in int[] arr = new int[100]; } ---- fails with: Error: found 'in' instead of statement Since 'in' is the same as 'const scope' both should compile or fail. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 31 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12050 At least it should give a better error message like "only parameters can be marked with 'in'" -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 31 2014