Merge pull request #120 from Herringway/fix-inferrence

temporary fix for another instance of issue 16528
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-04-24 19:40:40 +02:00 committed by GitHub
commit fbca742f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2129,7 +2129,8 @@ struct Node
}
// Get index of pair with key (or value, if key is false) matching index.
sizediff_t findPair(T, Flag!"key" key = Yes.key)(const ref T index) const
// Cannot be inferred @safe due to https://issues.dlang.org/show_bug.cgi?id=16528
sizediff_t findPair(T, Flag!"key" key = Yes.key)(const ref T index) const @safe
{
const pairs = getValue!(Pair[])();
const(Node)* node;