blob: 3a5fed4b06f3e37698209f51578b87e8accffcc2 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail111.d(12): Error: can't have array of int(int)
---
*/
// Issue 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
}