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

17 lines
220 B
D

// https://issues.dlang.org/show_bug.cgi?id=21876
auto test1()
{
int[0] a;
return a;
}
auto test2()
{
static int[0] a;
return a;
}
enum x = test1();
enum y = test2();
static assert(x == y && y == []);