Fix @system annotation in multisort unittest

This commit is contained in:
Dennis Korpel 2022-09-23 17:11:42 +02:00
parent d3c7bb54de
commit 2866acf18d

View file

@ -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
@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];
a.multiSort!(lt, lt);
assert(a == [1, 2]);