1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice10212.d(12): Error: mismatched function return type inference of `int function() pure nothrow @nogc @safe` and `int`
5 ---
6 */
7 
delegate()8 int delegate() foo()
9 {
10     // returns "int function() pure nothrow @safe function() pure nothrow @safe"
11     // and it mismatches to "int delegate()"
12     return () => {
13         return 1;
14     };
15 }
16