diff ast/Exp.d @ 114:3a0cd42de9cc

Removed misc/Error.d and is now using the error system all way through.
author Anders Johnsen <skabet@gmail.com>
date Sun, 25 May 2008 16:40:38 +0200
parents c658172ca8a0
children c0b531362ca6
line wrap: on
line diff
--- a/ast/Exp.d	Sun May 25 15:48:13 2008 +0200
+++ b/ast/Exp.d	Sun May 25 16:40:38 2008 +0200
@@ -503,7 +503,11 @@
     {
         if (myType !is null)
             return myType;
-        myType = env.find(this).type;
+        if(auto s = env.find(this))
+            if(s.type)
+                myType = s.type;
+        else
+            myType = DType.Int;
         return myType;
     }