Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test22023.d(102): Error: typesafe variadic function parameter `a` of type `int[]` cannot be marked `return`
4 ---
5 */
6
7 // issues.dlang.org/show_bug.cgi?id=22023
8
9 #line 100
10
11 @safe:
12 ref int f(return int[] a ...)
13 {
14 return a[2];
15 }