changeset 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 0bac0bb506ca
children a6b43f87ee0c
files trunk/src/dil/Expressions.d
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
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