https://issues.dlang.org/show_bug.cgi?id=15562

          Issue ID: 15562
           Summary: scope parameter doesn't work
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

int[] globalSlice;
int[] foo(scope int[] parameter)
{
    globalSlice = parameter; // ← compilation OK now
    return parameter; // ← compilation OK now
}
void main()
{
    int[] slice = [ 10, 20 ];
    int[] result = foo(slice);
}

--

Reply via email to