mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
DMD issue 693 & 5946 - Allow using 'this' for alias template parameter
This commit is contained in:
@@ -2795,6 +2795,9 @@ Expression *ThisExp::semantic(Scope *sc)
|
||||
#endif
|
||||
if (type && var)
|
||||
{ //assert(global.errors || var);
|
||||
#if IN_LLVM
|
||||
var->isVarDeclaration()->checkNestedReference(sc, loc);
|
||||
#endif
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -4245,6 +4245,7 @@ void TemplateInstance::semanticTiargs(Loc loc, Scope *sc, Objects *tiargs, int f
|
||||
return;
|
||||
for (size_t j = 0; j < tiargs->dim; j++)
|
||||
{
|
||||
|
||||
Object *o = (Object *)tiargs->data[j];
|
||||
Type *ta = isType(o);
|
||||
Expression *ea = isExpression(o);
|
||||
|
||||
Reference in New Issue
Block a user