struct Foo { void test() {} } struct Bar { Foo foo; alias foo this; } void main() { Bar bar; bar.test(); // ok with(bar) { test(); // Error: undefined identifier test } }
*** This issue has been marked as a duplicate of issue 6711 ***