diff trunk/src/dil/Expressions.d @ 546:57f5b08b8313

Added semantic() and this() methods to NullExpression.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 19 Dec 2007 21:03:15 +0100
parents 743b0390d20a
children a6b43f87ee0c
line wrap: on
line diff
--- a/trunk/src/dil/Expressions.d	Wed Dec 19 20:34:53 2007 +0100
+++ b/trunk/src/dil/Expressions.d	Wed Dec 19 21:03:15 2007 +0100
@@ -700,6 +700,19 @@
   {
     mixin(set_kind);
   }
+
+  this(Type type)
+  {
+    this();
+    this.type = type;
+  }
+
+  Expression semantic(Scope)
+  {
+    if (!type)
+      type = Types.Void_ptr;
+    return this;
+  }
 }
 
 class DollarExpression : Expression