mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
514 B
D
19 lines
514 B
D
/*
|
|
TEST_OUTPUT:
|
|
----
|
|
fail_compilation/b19523.d(13): Error: undefined identifier `SomeStruct`
|
|
fail_compilation/b19523.d(14): Error: function `foo` is not callable using argument types `(_error_)`
|
|
fail_compilation/b19523.d(14): cannot pass argument `__error` of type `_error_` to parameter `int delegate() arg`
|
|
fail_compilation/b19523.d(19): `b19523.foo(int delegate() arg)` declared here
|
|
----
|
|
*/
|
|
module b19523;
|
|
|
|
void bar () {
|
|
SomeStruct s;
|
|
foo({
|
|
return s;
|
|
});
|
|
}
|
|
|
|
void foo (int delegate() arg) {}
|