Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
4.13 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Oct 24, 2019
1 parent 39cd1b1 commit b552d07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Assert.hack
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,9 @@ abstract class Assert {
}

private static function sorted<T>(Traversable<T> $x): ImmVector<T> {
$copy = Vector::fromItems($x);
$copy = vec($x);
\sort(inout $copy);
return $copy->toImmVector();
/* HH_FIXME[4110] sort() is not generic */
return new ImmVector($copy);
}
}

0 comments on commit b552d07

Please sign in to comment.