diff dmd/interpret.c @ 658:50383e476c7e

Upgraded frontend to DMD 1.035
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 16:22:11 +0200
parents 870652a9af23
children 330f999ade44
line wrap: on
line diff
--- a/dmd/interpret.c	Mon Oct 06 14:37:00 2008 +0200
+++ b/dmd/interpret.c	Mon Oct 06 16:22:11 2008 +0200
@@ -77,10 +77,11 @@
 	return NULL;
     }
 
-    //printf("test2 %d, %p\n", semanticRun, scope);
     if (semanticRun == 0 && scope)
     {
 	semantic3(scope);
+    if (global.errors)  // if errors compiling this function
+        return NULL;
     }
     if (semanticRun < 2)
 	return NULL;