blob: 99fe1edf3e0e5e50bb6a205cfd27a38bf4c9e0c1 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice10212.d(13): Error: expected return type of `int`, not `int function() pure nothrow @nogc @safe`:
fail_compilation/ice10212.d(13): Return type of `int` inferred here.
---
*/
int delegate() foo()
{
// returns "int function() pure nothrow @safe function() pure nothrow @safe"
// and it mismatches to "int delegate()"
return () => () {
return 1;
};
}