mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 09:30:49 +03:00
Fix @system
annotation in multisort unittest
This commit is contained in:
parent
d3c7bb54de
commit
2866acf18d
1 changed files with 2 additions and 2 deletions
|
@ -1642,9 +1642,9 @@ private void multiSortImpl(Range, SwapStrategy ss, funs...)(Range r)
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://issues.dlang.org/show_bug.cgi?id=16413 - @system comparison function
|
// https://issues.dlang.org/show_bug.cgi?id=16413 - @system comparison function
|
||||||
@safe unittest
|
@system unittest
|
||||||
{
|
{
|
||||||
bool lt(int a, int b) { return a < b; } static @system
|
static @system bool lt(int a, int b) { return a < b; }
|
||||||
auto a = [2, 1];
|
auto a = [2, 1];
|
||||||
a.multiSort!(lt, lt);
|
a.multiSort!(lt, lt);
|
||||||
assert(a == [1, 2]);
|
assert(a == [1, 2]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue