mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
265 B
D
15 lines
265 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test22023.d(102): Error: typesafe variadic function parameter `a` of type `int[]` cannot be marked `return`
|
|
---
|
|
*/
|
|
|
|
// issues.dlang.org/show_bug.cgi?id=22023
|
|
|
|
#line 100
|
|
|
|
@safe:
|
|
ref int f(return int[] a ...)
|
|
{
|
|
return a[2];
|
|
}
|