Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail122.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail122.d(12): Error: undefined identifier `y`
5 ---
6 */
7
8 // https://issues.dlang.org/show_bug.cgi?id=228
9 // Crash on inferring function literal return type after prior errors
10 void main()
11 {
12 y = 2;
13 auto x = function(){};
14 }