mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
334 B
D
17 lines
334 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail111.d(12): Error: cannot have array of `int(int)`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=289
|
|
// Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types
|
|
alias int ft(int);
|
|
|
|
ft[] x; // is allowed
|
|
|
|
void test()
|
|
{
|
|
x.length = 2; // crashes DMD
|
|
}
|