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 b21ff32 commit e5ed160Copy full SHA for e5ed160
source/mir/string_map.d
@@ -542,8 +542,9 @@ struct StringMap(T, U = uint)
542
assert (index < length);
543
return implementation._values[index];
544
}
545
- import mir.exception: MirException;
546
- throw new MirException("No member: ", key);
+ import core.exception : onRangeError;
+ onRangeError();
547
+ return implementation._values[0]; // TODO: remove when onRangeError is noreturn
548
549
550
version(mir_test) static if (is(T == int))
0 commit comments