d: Merge dmd. druntime e770945277, phobos 6d6e0b9b9
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / b19523.d
blobd2a05c73dc1adfb15f48565596bbcfd2d0937169
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 `__lambda2` 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;
12 void bar () {
13 SomeStruct s;
14 foo({
15 return s;
16 });
19 void foo (int delegate() arg) {}