diff dmd/WhileStatement.d @ 62:6557375aff35

InExp.opId_r WhileStatement.syntaxCopy
author korDen
date Mon, 23 Aug 2010 03:21:32 +0400
parents 51605de93870
children cab4c37afb89
line wrap: on
line diff
--- a/dmd/WhileStatement.d	Mon Aug 23 03:01:24 2010 +0400
+++ b/dmd/WhileStatement.d	Mon Aug 23 03:21:32 2010 +0400
@@ -26,7 +26,8 @@
 	
     Statement syntaxCopy()
 	{
-		assert(false);
+		WhileStatement s = new WhileStatement(loc, condition.syntaxCopy(), body_ ? body_.syntaxCopy() : null);
+		return s;
 	}
 	
     Statement semantic(Scope sc)