[Issue 12050] New: in does not work as storage class where const scope does
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 31 15:31:49 PST 2014
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 at puremagic.com
ReportedBy: rswhite4 at googlemail.com
--- Comment #0 from rswhite4 at googlemail.com 2014-01-31 15:31:46 PST ---
----
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: -------
More information about the Digitalmars-d-bugs
mailing list