diff sema/AstAction.d @ 68:381975d76baf new_gen

A LOT of bug fixing - also implemented implicit casts. If you do a --ast-dump-code on a target with some algebra of differant types, you should now see the type casts being made. Also, Tests are again back with only switches failing...
author Anders Johnsen <skabet@gmail.com>
date Thu, 01 May 2008 19:25:49 +0200
parents 79cb0afafabe
children 13eea2c4e60d ad956143dcdc
line wrap: on
line diff
--- a/sema/AstAction.d	Tue Apr 29 20:15:22 2008 +0200
+++ b/sema/AstAction.d	Thu May 01 19:25:49 2008 +0200
@@ -138,4 +138,9 @@
         Exp[] arguments = cast(Exp[])args.dup;
         return new CallExp(f, arguments);
     }
+
+    override ExprT actOnCastExpr(Id id, ExprT exp)
+    {
+        return new CastExp(new Identifier(id.tok), cast(Exp)exp );
+    }
 }