From 80ee4e5f9586f4802215b065e43a6e687443c9a6 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Tue, 24 Apr 2018 13:51:29 -0300 Subject: [PATCH] temporary fix for another instance of issue 16528 --- source/dyaml/node.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dyaml/node.d b/source/dyaml/node.d index f653d0b..e60aa42 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -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;