[Issue 18689] New: std.format should always throw FormatException on bad specs/arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 28 16:02:17 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18689
Issue ID: 18689
Summary: std.format should always throw FormatException on bad
specs/arguments
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: jack at jackstouffer.com
void main()
{
import std.exception : assertThrown;
import std.format : format, FormatException;
assertThrown!FormatException(format("%d", "foo")); // fails
}
--
More information about the Digitalmars-d-bugs
mailing list