diff ast/Exp.d @ 181:59cd211a1bd3

Better support for function pointers
author Anders Halager <halager@gmail.com>
date Fri, 25 Jul 2008 01:39:01 +0200
parents 2a1a635bd531
children 8ea749b7da91
line wrap: on
line diff
--- a/ast/Exp.d	Fri Jul 25 01:21:07 2008 +0200
+++ b/ast/Exp.d	Fri Jul 25 01:39:01 2008 +0200
@@ -104,7 +104,7 @@
 
     override DType type()
     {
-        DFunction f = cast(DFunction)exp.type();
+        DFunction f = exp.type.asCallable();
         assert(f !is null, "Can only call functions");
         return f.returnType;
     }