mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
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 .
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user