/*
TEST_OUTPUT:
---
fail_compilation/fail122.d(12): Error: undefined identifier 'y'
---
*/

// Issue 228 - Crash on inferring function literal return type after prior errors

void main()
{
    y = 2;
    auto x = function(){};
}
