DMD issue 693 & 5946 - Allow using 'this' for alias template parameter

This commit is contained in:
Alexey Prokhin
2011-07-19 19:43:05 +04:00
parent f97fd92433
commit edd1ed5b09
3 changed files with 6 additions and 1 deletions

View File

@@ -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;
}