Trass3r <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Trass3r <> 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:
------- You are receiving this mail because: -------

Reply via email to