We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c42e61 commit 10a0558Copy full SHA for 10a0558
source/mir/string_map.d
@@ -481,6 +481,9 @@ struct StringMap(T, U = uint)
481
size_t index;
482
if (!implementation.findIndex(key, index))
483
return null;
484
+ assert (index < length);
485
+ index = implementation.indices[index];
486
487
return implementation._values + index;
488
}
489
@@ -953,4 +956,8 @@ unittest
953
956
assert(token[`access_token`] == "secret-data");
954
957
assert(token[`expires_in`] == 3599);
955
958
assert(token[`token_type`] == "Bearer"); // mir/string_map.d(511): No member: token_type
959
+
960
+ const tkType = `token_type` in token;
961
962
+ assert((*tkType) == "Bearer"); // *tkType contains value 3599
963
0 commit comments