blob: ebfbbfdc4472158bf9f368d8bb6c2e801a4e5bfe [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail11503b.d(17): Error: cannot implicitly convert expression `makes()` of type `immutable(int[])` to `int[]`
---
*/
immutable int[] x = [1, 2, 3];
auto makes() pure
{
return x;
}
int main()
{
auto a = x;
int[] b = makes();
return b[1];
}