Bug 6645 – [SafeD] moveAll is not @trusted

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-09-11T10:07:00Z
Last change time
2014-03-19T20:58:44Z
Assigned to
nobody
Creator
dmitry.olsh

Comments

Comment #0 by dmitry.olsh — 2011-09-11T10:07:03Z
Another one in @safe series. This fails bacause moveAll is @system: import std.algorithm; @safe void f() { int[] a = [1,2,3]; int[] b = new int[3]; moveAll(a, b); assert(a == b); }
Comment #1 by lt.infiltrator — 2014-03-19T20:58:44Z
The provided code compiles and runs without error as of v2.065.