blob: c52cb431dc76923068f4cd3a9fb4faf6a2639b07 [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();
}