gcc/testsuite/gdc.test/fail_compilation/diag20268.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=20268 |
| 2 | |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | fail_compilation/diag20268.d(12): Error: template `__lambda_L11_C1` is not callable using argument types `!()(int)` |
| 7 | fail_compilation/diag20268.d(11): Candidate is: `__lambda_L11_C1(__T1, __T2)(x, y)` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | alias f = (x,y) => true; |
| 12 | auto x = f(1); |