Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail331.d(10): Error: cannot use `typeof(return)` inside function `foo` with inferred return type
5 ---
6 */
7
8 auto foo()
9 {
10 typeof(return) result;
11 return result;
12 }