# HG changeset patch # User Aziz K?ksal # Date 1198094595 -3600 # Node ID 57f5b08b8313d2f5127d05ff92e5bbbfcc8c3d48 # Parent 0bac0bb506ca99ef4f2af09a280f4e480fc8e7da Added semantic() and this() methods to NullExpression. diff -r 0bac0bb506ca -r 57f5b08b8313 trunk/src/dil/Expressions.d --- 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