From ea2279b11a16d3df131cbde84c8eaf006c1fe355 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Fri, 17 Apr 2009 02:54:16 +0200 Subject: [PATCH] Updated the interal runtime's ClassInfo type to match the one in object.di . Runtime now compiles and runminitest is back to normal except for typeinfo10.d . --- runtime/internal/genobj.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/internal/genobj.d b/runtime/internal/genobj.d index edbd395d..694c0690 100644 --- a/runtime/internal/genobj.d +++ b/runtime/internal/genobj.d @@ -161,7 +161,7 @@ class ClassInfo : Object // 8: // has constructors void* deallocator; OffsetTypeInfo[] offTi; - void function(Object) defaultConstructor; // default Constructor + void* defaultConstructor; // default Constructor /** * Search all modules for ClassInfo corresponding to classname. @@ -196,7 +196,8 @@ class ClassInfo : Object if (flags & 8 && defaultConstructor) { - defaultConstructor(o); + auto ctor = cast(Object function(Object))defaultConstructor; + return ctor(o); } return o; }