blob: ae0f5b1093b4120f3c2bef114f278f0caeaa458d [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail120.d(12): Error: need 'this' for 'nodes' of type 'int[2]'
fail_compilation/fail120.d(13): Error: need 'this' for 'nodes' of type 'int[2]'
---
*/
class Foo
{
int[2] nodes;
auto left = (){ return nodes[0]; };
auto right = (){ return nodes[1]; };
}