blob: b9fe2aa6557b421c5a0d5c5548f810975adfcf80 [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;
};
}