auto aa = [ 1 : "x", 2 : "y", 3 : "z" ]; format("%(%)", spelled); format("%(%s%)", spelled); format("%(%s%s%s%)", spelled); All three format strings should be refuted with exceptions.
Sorry, should be `aa` instead of `spelled` in all three lines.
@berni44 created dlang/phobos pull request #8019 "Fix Issue 21875 - std.format: wrong number of format specifiers in" fixing this issue: - Fix Issue 21875 - std.format: wrong number of format specifiers in nested format string of associative arrays should be detected https://github.com/dlang/phobos/pull/8019
dlang/phobos pull request #8019 "Fix Issue 21875 - std.format: wrong number of format specifiers in" was merged into master: - 45a753dd19fb6ea05cf87a6173b6f494182e0377 by berni44: Fix Issue 21875 - std.format: wrong number of format specifiers in nested format string of associative arrays should be detected https://github.com/dlang/phobos/pull/8019