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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 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: -------

Reply via email to