Skip to content

Commit

Permalink
Merge pull request #1575 from tom-tan/safe-unittest-array-minimallyIn…
Browse files Browse the repository at this point in the history
…itializedArray

Mark the unittest for std.array.minimallyInitializedArray as @safe
  • Loading branch information
dnadlinger committed Oct 2, 2013
2 parents 8b74811 + 1a7546c commit 99f05da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/array.d
Expand Up @@ -326,7 +326,7 @@ if(allSatisfy!(isIntegral, I))
return arrayAllocImpl!(true, T, I)(sizes);
}

unittest
@safe unittest
{
double[] arr = minimallyInitializedArray!(double[])(100);
assert(arr.length == 100);
Expand Down

0 comments on commit 99f05da

Please sign in to comment.