From 9e3ef5e90563b6db4cce3e7f341a3a34d1505f17 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Mon, 3 Jan 2011 18:49:45 +0300 Subject: [PATCH] Fixed the type of the magic property .funcptr" --- dmd2/mtype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmd2/mtype.c b/dmd2/mtype.c index 4e0bfe4b..2fd0090d 100644 --- a/dmd2/mtype.c +++ b/dmd2/mtype.c @@ -5619,14 +5619,14 @@ Expression *TypeDelegate::dotExp(Scope *sc, Expression *e, Identifier *ident) #endif if (ident == Id::ptr) { - e = new GEPExp(e->loc, e, ident, 0); + e = new GEPExp(e->loc, e, ident, 0); e->type = tvoidptr; return e; } else if (ident == Id::funcptr) { e = new GEPExp(e->loc, e, ident, 1); - e->type = tvoidptr; + e->type = next->pointerTo(); return e; } else