http://d.puremagic.com/issues/show_bug.cgi?id=3052
Trass3r <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Trass3r <[email protected]> 2011-07-14 01:02:14 PDT --- This is because dmd checks in TemplateInstance::hasNestedArgs that the template declaration is in module scope: if (tempdecl->toParent()->isModule()) And with a little hack: // if module level template or a static member of an aggregate // NOTE not sure if there is a better way to determine the storage class of a templated class method if (tempdecl->toParent()->isModule() || (tempdecl->isMember() && tempdecl->scope->stc & STCstatic)) we get Error: need 'this' to access member next -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
