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: nob...@puremagic.com
          Reporter: j...@jackstouffer.com

void main()
{
    import std.exception : assertThrown;
    import std.format : format, FormatException;
    assertThrown!FormatException(format("%d", "foo")); // fails
}

--

Reply via email to