| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
---- |
| 4 |
fail_compilation/b19523.d(13): Error: undefined identifier `SomeStruct` |
| 5 |
fail_compilation/b19523.d(14): Error: function `foo` is not callable using argument types `(_error_)` |
| 6 |
fail_compilation/b19523.d(14): cannot pass argument `__error` of type `_error_` to parameter `int delegate() arg` |
| 7 |
fail_compilation/b19523.d(19): `b19523.foo(int delegate() arg)` declared here |
| 8 |
---- |
| 9 |
*/ |
| 10 |
module b19523; |
| 11 |
|
| 12 |
void bar () { |
| 13 |
SomeStruct s; |
| 14 |
foo({ |
| 15 |
return s; |
| 16 |
}); |
| 17 |
} |
| 18 |
|
| 19 |
void foo (int delegate() arg) {} |