diff dmd/VarExp.d @ 64:4290d870944a

More fixes
author korDen
date Mon, 23 Aug 2010 20:29:15 +0400
parents cab4c37afb89
children 2e2a5c3f943a
line wrap: on
line diff
--- a/dmd/VarExp.d	Mon Aug 23 16:52:24 2010 +0400
+++ b/dmd/VarExp.d	Mon Aug 23 20:29:15 2010 +0400
@@ -232,7 +232,10 @@
 
 	void scanForNestedRef(Scope sc)
 	{
-		assert(false);
+		//printf("VarExp.scanForNestedRef(%s)\n", toChars());
+		VarDeclaration v = var.isVarDeclaration();
+		if (v)
+			v.checkNestedReference(sc, Loc(0));
 	}
 
 	int inlineCost(InlineCostState* ics)