Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
UplinkCoder committed Jan 17, 2016
1 parent 1d1fab7 commit 75c4690
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libd/src/d/semantic/dtemplate.d
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ private:
}
}

if(t.constraint) {

if (t.constraint) {
auto oldScope = currentScope;
scope(exit) {currentScope = oldScope;}
scope(exit) {
currentScope = oldScope;
}

//template constraint evaluationScope :)
TemplateInstance tces = new TemplateInstance(t.location, t, []); //just to provide the Scope... could be every other SymbolScope...
Expand Down

0 comments on commit 75c4690

Please sign in to comment.