blob: 4bde3700482b0277f6fb84f015ea7ffead8e5972 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail224.d(22): Error: need 'this' of type A to access member x from static function f
---
*/
int gi;
class A
{
int x = 42;
void am()
{
static void f()
{
class B
{
void bm()
{
gi = x;
}
}
(new B).bm();
}
f();
}
}
void main()
{
(new A).am();
}