gcc/testsuite/gdc.test/fail_compilation/fail8009.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail8009.d(9): Error: template `filter` is not callable using argument types `!()(void)` |
| 5 | fail_compilation/fail8009.d(8): Candidate is: `filter(R)(scope bool delegate(ref BAD!R) func)` |
| 6 | --- |
| 7 | */ |
| 8 | void filter(R)(scope bool delegate(ref BAD!R) func) { } |
| 9 | void main() { filter(r => r); } |