void startsWith(alias pred) () if (is(typeof(pred('c', 'd')) : bool)) { } void startsWith(alias pred) () if (is(typeof(pred('c', "abc")) : bool)) { } void test() { startsWith!((a, b) { return a == b; })(); }
https://github.com/D-Programming-Language/dmd/commit/cacbd0a9aad2d4263aac15637c4a63834ff40a0c
*** Issue 6257 has been marked as a duplicate of this issue. ***