Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag3013.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag3013.d(11): Error: cannot pass type `string` as a function argument
5 ---
6 */
7
8 int format(string, string, string);
9
10 void main() {
11 int s = string.format("abc", "def");
12 }