mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
DMD issue 693 & 5946 - Allow using 'this' for alias template parameter
This commit is contained in:
@@ -1324,7 +1324,8 @@ DValue* ThisExp::toElem(IRState* p)
|
||||
// regular this expr
|
||||
if (VarDeclaration* vd = var->isVarDeclaration()) {
|
||||
LLValue* v;
|
||||
if (vd->toParent2() != p->func()->decl) {
|
||||
Dsymbol* vdparent = vd->toParent2();
|
||||
if (vdparent != p->func()->decl) {
|
||||
Logger::println("nested this exp");
|
||||
#if STRUCTTHISREF
|
||||
return DtoNestedVariable(loc, type, vd, type->ty == Tstruct);
|
||||
|
||||
Reference in New Issue
Block a user