D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6645 - [SafeD] moveAll is not @trusted
Summary: [SafeD] moveAll is not @trusted
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 10:07 UTC by Dmitry Olshansky
Modified: 2014-03-19 20:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dmitry Olshansky 2011-09-11 10:07:03 UTC
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 Infiltrator 2014-03-19 20:58:44 UTC
The provided code compiles and runs without error as of v2.065.