https://issues.dlang.org/show_bug.cgi?id=21529

          Issue ID: 21529
           Summary: Missing format arguments are not detected at compile
                    time
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nob...@puremagic.com
          Reporter: witold.barylu...@gmail.com

This code should not compile, but it does:

void main() {
    import std.stdio;
    const int a = 512;
    const double b = 123.0 / a;
    writefln!"%s %f %f"(a, 100.0 / b);
}


https://godbolt.org/z/j6qszx

--

Reply via email to