diff dmd/StaticIfDeclaration.d @ 23:460959608115

Branch merge.
author Robert Clipsham <robert@octarineparrot.com>
date Mon, 12 Apr 2010 17:00:08 +0100
parents 427f8aa74d28 1628b221808d
children 2e2a5c3f943a
line wrap: on
line diff
--- a/dmd/StaticIfDeclaration.d	Mon Apr 12 16:29:33 2010 +0400
+++ b/dmd/StaticIfDeclaration.d	Mon Apr 12 17:00:08 2010 +0100
@@ -21,7 +21,13 @@
 	
     Dsymbol syntaxCopy(Dsymbol s)
 	{
-		assert(false);
+	    StaticIfDeclaration dd;
+
+	    assert(!s);
+	    dd = new StaticIfDeclaration(condition.syntaxCopy(),
+		Dsymbol.arraySyntaxCopy(decl),
+		Dsymbol.arraySyntaxCopy(elsedecl));
+	    return dd;
 	}
 
     bool addMember(Scope sc, ScopeDsymbol sd, bool memnum)
@@ -75,4 +81,4 @@
 	{
 		assert(false);
 	}
-}
\ No newline at end of file
+}