www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20691] New: Converting scope static array to scope dynamic

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

          Issue ID: 20691
           Summary: Converting scope static array to scope dynamic array
                    should be error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

void bar()  safe
{
    scope char[][2] sa;
    scope char[][] da = sa; // should give error
}

--
Mar 21 2020