dmd/compiler/test/fail_compilation/fail122.d
2022-07-09 18:53:07 +02:00

14 lines
264 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail122.d(12): Error: undefined identifier `y`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=228
// Crash on inferring function literal return type after prior errors
void main()
{
y = 2;
auto x = function(){};
}